SEOUL, South Korea — North Korea launched a ballistic missile on Tuesday, the first such test since President Trump and his South Korean counterpart, Moon Jae-in, agreed to put more pressure on the country to come to the negotiating table.

The missile took off from the Banghyon airfield in the northwestern town of Kusong and flew 578 miles before landing in the sea between North Korea and Japan, the South Korean military said in a statement. Military officials were still analyzing flight data to determine what type of missile had been used.

It was the first missile test by the North since it launched land-to-sea cruise missiles off its east coast on June 8. Under a series of United Nations Security Council resolutions, North Korea is banned from developing or testing ballistic missiles.

According to the Japanese government, the missile flew for 40 minutes before landing in the so-called exclusive economic zone in the sea between Japan and the Koreas. The United States Pacific Command said it had tracked the intermediate range missile for 37 miles. In Seoul, Mr. Moon, who during his election campaign this year advocated talks with the North, called a meeting of senior security officials to discuss the latest provocation, his office said.