SEOUL, South Korea — North Korea fired two short-range missiles off its east coast on Thursday amid stalled efforts to resume talks on ending the country’s nuclear weapons program, the South Korean military said.

The first short-range missile, launched from near Wonsan, a coastal town east of the capital, Pyongyang, flew 430 kilometers (267 miles), reaching a height of 50 kilometers (31 miles) before landing in waters between North Korea and Japan, South Korean defense officials said. The second missile flew 690 kilometers (430 miles) further, the officials said, citing analytical data from United States officials.

The officials said both missiles were fired from mobile launch vehicles, but more analysis was needed to determine whether the missiles were based on ballistic technology. A United Nations resolution bans North Korea from building or testing ballistic missiles.

The launchings were the first such test since President Trump and the North Korean leader, Kim Jong-un, met on June 30 in South Korea in the Demilitarized Zone.