TOKYO - North Korea fired a ballistic missile toward the Sea of Japan on Thursday, the Japanese and South Korean governments said, prompting a Japanese emergency alert system to warn it may land near Hokkaido.