North Korea fired a submarine-launched ballistic missile into the sea, South Korea and Japan claimed.