The US Coast Guard has used a machine gun to fire at a Japanese ship which was washed out to sea by the devastating tsunami.