(CNN) -

Reaction to North Korea's nuclear test -- its third since 2006 -- poured in Tuesday from around the world:

Barack Obama, U.S. president:

"This is a highly provocative act that ... undermines regional stability, violates North Korea's obligations under numerous United Nations Security Council resolutions, contravenes its commitments under the September 19, 2005, Joint Statement of the Six-Party Talks, and increases the risk of proliferation.

North Korea's nuclear weapons and ballistic missile programs constitute a threat to U.S. national security and to international peace and security. The United States remains vigilant in the face of North Korean provocations and steadfast in our defense commitments to allies in the region."

"The danger posed by North Korea's threatening activities warrants further swift and credible action by the international community. The United States will also continue to take steps necessary to defend ourselves and our allies."

U.S. Defense Secretary Leon Panetta

"We're going to have to continue to deal with rogue states like Iran and North Korea. We just saw what North Korea's done in these last few weeks -- a missile test and now a nuclear test. They represent a serious threat to the United States of America and we've got to be prepared to deal with that."

China's Ministry of Foreign Affairs:

The Chinese government "resolutely opposes" North Korea's nuclear test, the Ministry of Foreign Affairs said in a prepared statement.

"Holding up peace and stability in Northeast Asia is China's resolute position," it said. "We strongly urge (North Korea) to abide by (its) promise to denuclearize and take no further action that will worsen the situation."

Park Geun-hye, South Korean president-elect:

"Despite the strong warning from the international community and South Korea, North Korea has conducted its third nuclear test, and we strongly condemn it."

"The North Korean nuclear test is a serious threat to the peace of the Korean peninsula and the world, and it has hampered the credibility between the South and North."

Russia's Ministry of Foreign Affairs:

The Russian Federation condemned the test of the nuclear explosive but also called on other nations not to react with a show of military might.

In a written statement, the foreign ministry said North Korea's actions are an affront to the community of nations. "It's doubly sad that we are talking about the state with which our country has a long history of good neighborliness," the ministry said.

Russia called upon North Korea to stay away from a nuclear missile program, adhere to U.N. Security Council regulations and return to six-party talks.

Then the foreign ministry directed a message to North Korea's adversaries: "We expect that the current action of Pyongyang will not be used as an excuse to increase military activities around the Korean Peninsula."

Shinzo Abe, Japanese prime minister:

"North Korea's nuclear testing is a grave threat to the safety of Japan and a serious challenge against international disarmament framework based on the non-nuclear proliferation treaty. We can never tolerate it as it significantly compromise the peace and safety of Northeast Asia and the international society."

"Japan firmly protests and sternly condemns the nuclear testing."

Statement from the office of Ban Ki-moon, U.N. secretary-general:

"The Secretary-General condemns the underground nuclear weapon test conducted by the Democratic People's Republic of Korea (DPRK) today. It is a clear and grave violation of the relevant Security Council resolutions.

It is deplorable that Pyongyang defied the strong and unequivocal call from the international community to refrain from any further provocative measures. The Secretary-General had repeatedly called on the new leadership in Pyongyang to address international concerns and start building confidence with neighboring countries and the international community.

The Secretary-General is gravely concerned about the negative impact of this deeply destabilizing act on regional stability as well as the global efforts for nuclear non-proliferation. He once again urges the DPRK to reverse course and work toward de-nuclearization of the Korean peninsula.