TOKYO - North Korea test-fired a ballistic missile over northern Japan into the Pacific Ocean on Friday with an unprecedented flight distance that would have been enough to reach the U.S territory of Guam, despite years of sanctions over its weapons program and the international community's repeated calls for restraint.