South Korea's military says North Korea fired a long-range missile that landed in the sea to the east of the country.