A man watches a TV screen showing a file footage of the missile launch conducted by North Korea, at Seoul Railway Station in Seoul, South Korea, Friday, March 18, 2016.  North Korea defied U.N. resolutions by firing a medium-range ballistic missile into the sea on Friday, Seoul and Washington officials said, days after its leader Kim Jong Un ordered weapons tests linked to its pursuit of a long-range nuclear missile capable of reaching the U.S. mainland. The letters on the screen read " The missile puts all of South Korea and part of Japan within striking distance." (AP Photo/Ahn Young-joon)
A man watches a TV screen showing a file footage of the missile launch conducted by North Korea, at Seoul Railway Station in Seoul, South Korea, Friday, March 18, 2016. North Korea defied U.N. resolutions by firing a medium-range ballistic missile into the sea on Friday, Seoul and Washington officials said, days after its leader Kim Jong Un ordered weapons tests linked to its pursuit of a long-range nuclear missile capable of reaching the U.S. mainland. The letters on the screen read " The missile puts all of South Korea and part of Japan within striking distance." (AP Photo/Ahn Young-joon) Credit: Ahn Young-joon

SEOUL, South Korea — North Korea defied U.N. resolutions by firing a medium-range ballistic missile into the sea on Friday, Seoul and Washington officials said, days after its leader Kim Jong Un ordered weapons tests linked to its pursuit of a long-range nuclear missile capable of reaching the U.S. mainland.

South Korea’s Joint Chiefs of Staff said in a statement that the missile fired from a site north of Pyongyang flew about 500 miles before crashing off the North’s east coast.

The Joint Chiefs of Staff said it wasn’t known what type of missile was fired, but a South Korean defense official, requesting anonymity citing department rules, said it is the first medium-range missile launched by the North since April 2014 when it fired two.

A senior U.S. defense official said the Pentagon can confirm the missile launch, saying it appears to be a Rodong missile fired from a road-mobile launcher. The official said the test violated multiple U.N. Security Council resolutions that ban North Korea from engaging in any ballistic and nuclear activities. The official spoke on condition of anonymity because he was not authorized to discuss the matter publicly.

South Korea’s Joint Chiefs of Staff said later Friday its surveillance equipment detected the trajectory of a suspected second missile fired from a site where the North’s confirmed first launch occurred. A Joint Chiefs of Staff statement said the object later disappeared from South Korean radar at an altitude of 10 miles and that it was trying to find out if a missile had been fired or something else was captured by the radar.

Friday’s launch came as North Korea reacts to ongoing annual South Korean-U.S. military drills that it sees as an invasion rehearsal. The drills are the largest ever, in response to the North’s nuclear test and long-range rocket launch earlier this year.

In recent weeks, North Korea threatened pre-emptive nuclear strikes against Washington and Seoul and test-fired short-range missiles and artillery into the sea in response to tough U.N. sanctions imposed over its nuclear test and rocket launch. The North says it needs nuclear weapons to cope with what it calls U.S. military threats.

On Tuesday, North Korea’s state media said Kim had ordered tests soon of a nuclear warhead and ballistic missiles capable of carrying warheads. Kim issued that order while overseeing a successful simulated test of a re-entry vehicle aimed at returning a nuclear warhead into the atmosphere from space so it could hit its intended target, according to the North’s Korean Central News Agency.

Taewoo Kim, a military expert at the South’s Konyang University, said it is likely that Friday’s launch was a test of a re-entry vehicle.

Some analysts had earlier predicted the North might fire a missile carrying an empty warhead, which contain trigger devices but lack plutonium or uranium, to see if those warhead’s parts can survive the high pressure and temperatures upon re-entry into the atmosphere and if they could detonate at the right time.