The missile landed near Japan's territorial waters, making it one of the longest launches for a North Korean test.