It prompted a warning from the Japanese government for people in northern areas to take cover.