North Korea fired a ballistic missile into waters off its east coast on Sunday, its second missile test in a week, which South Korea said dashed the hopes of the South's new liberal government for peace between the neighbours.

A South Korean military official said the missile appeared to be an upgraded, extended-range version of the North's solid-fuel submarine-launched missile. The missile fired a week ago flew was liquid-fuelled, and flew further.

North Korea has defied all calls to rein in its nuclear and missile programmes, even from China, its lone major ally, saying the weapons are needed for legitimate self-defence.

The reclusive state has been working to develop a nuclear-tipped missile capable of striking the U.S. mainland. On Saturday, it said it had developed the capability to strike the U.S. mainland, although Western missile experts say the claim is exaggerated.

An official travelling with U.S. President Donald Trump in Saudi Arabia said the White House was aware of the latest launch and noted that the missile had a shorter range than the three previous missiles that North Korea had tested.

The two missile tests in a week complicate plans by South Korea's new President Moon Jae-in to seek ways to reduce tension on the peninsula. Moon took office eleven days ago after winning an election on a platform of a more moderate approach to the North, with which the South is still technically at war since no peace treaty was signed at the end of their 1950-1953 conflict.

South Korea's foreign ministry said the tests were "reckless and irresponsible actions throwing cold water over the hopes and desires of this new government and the international community for denuclearisation and peace on the Korean peninsula".

Japanese Prime Minister Shinzo Abe said the latest missile test by the reclusive North was "a snub and a challenge to international efforts for a peaceful resolution".

Abe told reporters after a meeting of Japan's National Security Council that he wanted to raise the issue of North Korean missile launches at the Group of Seven leaders' summit in Italy this month. China had no immediate comment.

RIVAL TEAMS

Kim Dong-yub, a military expert at Kyungnam University's Institute for Far Eastern Studies in Seoul, said the North appeared to be testing and perfecting both solid and liquid-fuelled missiles, which might help explain why the pace of its tests had increased.

"I think the team to develop liquid fuel missiles are being pitted against the solid fuel team," Kim said. "The liquid fuel team succeeded on May 14 so the solid fuel team went for another round to achieve success. That is why the speed of North Korea’s missile development is going beyond imagination."

Sunday's missile was launched at 0759 GMT from a location near Pukchang, 60 km (36 miles) northeast of the capital Pyongyang, an area where North Korea attempted to test-launch another missile last month but failed, South Korea's Office of Joint Chiefs of Staff said in a statement.

The missile flew about 500 km (310 miles), it said. Japan's Chief Cabinet Secretary Yoshihide Suga said the missile landed outside Japan's exclusive economic zone and no damage to ships or airplanes was reported.

"The flight range was 500 km and South Korea and the United States are closely analysing additional information," South Korea's Joint Chiefs of Staff said.

On Saturday, North Korea's KCNA state news agency said in a commentary: "The U.S. mainland and the Pacific operational theatre are within the strike range of the DPRK and the DPRK has all kinds of powerful means for annihilating retaliatory strike." North Korea's full name is the Democratic People's Republic of Korea (DPRK).