PYONGYANG: North Korea has test-fired a ballistic missile, South Korean and US military officials say.

It apparently exploded seconds after lift-off, the South Korean military was quoted as saying by Yonhap news agency. The US military said the missile did not leave North Korean territory.

It was fired from a site in South Pyeongan province north of Pyongyang in the early hours of Saturday local time, South Korea said.

The type of missile is not yet known.

US President Donald Trump tweeted: "North Korea disrespected the wishes of China & its highly respected President when it launched, though unsuccessfully, a missile today. Bad!"