A US Defense Department official says several people have been killed and as many as 10 have been wounded in a shooting at the Washington Navy Yard.