President Trump warned Tuesday that "all options are on the table" in response to North Korea's provocative launch of a mid-range ballistic missile over Japanese territory for the first time.

Such "threatening and destabilizing actions" only increase North Korea’s isolation in the region and around the world, Trump said, adding that North Korea’s actions show "contempt for its neighbors."

Trump did not reveal what options he is considering. "We'll see, we'll see," he said before boarding a helicopter for a trip to tour flooded areas  of Texas,

North Korea has twice fired rockets that it said were carrying satellites over Japan — in 1998 and 2009 — but it is the first time it has fired a ballistic missile over the island nation.

The Pentagon confirmed that the missile's northeastern path "did not pose a threat to North America." a Pentagon statement said.

North Korea has threatened to fire missiles off the coast of Guam, a U.S. territory to the southeast. Trump said at the time that North Korea would be met with "fire and fury" if it followed through on the threat.

Japanese Prime Minister Shinzo Abe assailed the missile launch said he and Trump agreed in a phone call to seek an emergency session of the U.N. Security Council. He quoted Trump as saying the United States was "with Japan 100%."

Abe told reporters that he and Trump saw the launch as an unprecedented threat, Japanese broadcaster NHK reported.

At one point, residents in several prefectures in northern regions of Japan were told to take cover when the missile's flight path was detected.

South Korea's Joint Chiefs of Staff said the missile traveled nearly 1,700 miles and reached a maximum height of 341 miles as it flew over the northern Japanese island of Hokkaido.

South Korea's National Intelligence Service told lawmakers that the missile was launched from an airfield at the international airport in the capital, Pyongyang, the Associated Press reported.

More: Global stocks fall, rattled by North Korean missile launch

More: U.S. revises assessment on North Korean missile launches

Japan’s Chief Cabinet Secretary Yoshihide Suga described the test as an "unprecedented, grave threat."

The South Korean government said in a statement that it "condemns in the strongest terms this provocation." It said if the nuclear and missile provocations continue, it  will respond strongly based on a "stalwart" alliance with the United States. 

South Korean Foreign Minister Kang Kyung-wha discussed in a phone call with U.S. Secretary of State Rex Tillerson how to respond to the missile launch, South Korea's foreign ministry said. 

They agreed to "sternly" take action at the U.N. Security Council, South Korean news agency Yonhap reported.