Israel on Tuesday joined the international community in censuring North Korea for conducting a nuclear test, and warned of the threat it poses to the international community.

“Israel strongly condemns North Korea’s nuclear test, and joins the international community in expressing the grave threat posed by this act to regional stability and international peace and security,” the Foreign Ministry said in a statement.

Along with a December 2012 ballistic missile launch, the test reflects North Korea’s negative role in the region and raises “grave concerns regarding the proliferation of nuclear and ballistic technologies,” the statement said.

North Korea declared that it had conducted an underground nuclear test Tuesday, taking an important step toward building a bomb small enough to be fitted on a missile that could reach United States.

The Foreign Ministry said the tests were in violation of North Korea’s international obligations and must be met with a swift response by the international community.

“A clear message must be sent to North Korea and to other countries, that such activities are unacceptable and cannot be tolerated,” the statement said.

Earlier, Iran reacted to the test, calling for all nuclear weapons in the world to be destroyed.

Iranian Foreign Ministry spokesman Ramin Mehmanparast told state news agency IRNA that the world needed to move beyond the use of mass casualty weapons.

“We need to come to the point where no country has any nuclear weapons and at the same time all weapons of mass destruction and nuclear arms need to be destroyed,” Mehmanparsat said.

Yet countries should have the right to “make use of nuclear activities for peaceful purposes,” he added.

Iran and North Korea are seen as allies. In December, Iranian agents were reported on hand for a long-range missile test and the two countries maintain weapons technology sharing agreements.

Iran itself is accused of attempting to build a nuclear weapon, though it claims its nuclear program is for peaceful purposes.

The test drew condemnations from the UN, US, France and NATO as well as Russia, which unequivocally condemned the testing of the miniaturized nuclear device, according to Russia Today.

Michal Shmulovich contributed to this report.