The Japanese government issued an emergency warning to residents of the southern prefecture of Okinawa, claiming that a missile had been fired from North Korea.