TEHRAN  - A showpiece summit hosted by Iran stumbled as soon as it opened on Thursday when the head of the UN pressed Tehran on its nuclear stand, and Egypt’s new leader publicly sided with Syria’s opposition.

The double challenge, before the leaders and delegates of the 120-member Non-Aligned Movement, upset Iran’s plans to portray the two-day summit as a diplomatic triumph over Western efforts to isolate it.

Supreme leader Ayatollah Ali Khamenei opened the event with a speech blasting the United States as a hegemonic meddler and Israel as a regime of “Zionist wolves.”

He also stated that his country “is never seeking nuclear weapons” and accused the UN Security Council, under US influence, of exerting an “overt dictatorship” over the world.

UN chief Ban Ki-moon, who looked irritated at Khamenei’s remarks, shot back that Iran should boost global confidence in its nuclear activities by “fully complying with the relevant (UN) Security Council resolutions and thoroughly cooperating with the IAEA,” the UN’s nuclear watchdog.

He warned about the current state of bellicose rhetoric coming from Israel and Iran, saying “a war of words can quickly spiral into a war of violence.”

Egypt’s new President Mohamed Mursi - making the first visit to Iran by an Egyptian head of state since the 1979 Islamic revolution - in turn embarrassed his hosts by voicing support for the opposition in Syria, which is fighting the Damascus regime unwaveringly backed by Iran.

“The revolution in Egypt is the cornerstone for the Arab Spring, which started days after Tunisia and then it was followed by Libya and Yemen and now the revolution in Syria against its oppressive regime,” Mursi said.

That contradicted the line put out by Damascus and Tehran, which assert that the Syrian uprising is a “terrorist” plot masterminded by the United States and regional countries.

Mursi’s address prompted a walkout by the Syrian government delegation and drew a sharp response from Syria’s Foreign Minister Walid Muallem, who accused the Egyptian leader of inciting further bloodshed in Syria.

Iran’s state media failed to mention the contentious parts of Ban and Mursi’s speeches in their coverage of the summit. Mursi reportedly had a short one-on-one with Iranian President Mahmoud Ahmadinejad before leaving Tehran, in which they discussed Syria and possibility of reviving ties.

The summit to-and-fro over Iran’s nuclear ambitions had its roots in an unusually frank meeting Ban held with Khamenei and Ahmadinejad after arriving on Wednesday.

Ban told them Iran needed to provide “concrete” steps to ease the international showdown which has raised the spectre of airstrikes on nuclear facilities, threatened by both Israel and the United States. Tensions have been raised by the International Atomic Energy Agency unveiling a new Iran “task force” to scrutinise Tehran’s nuclear programme and its compliance with UN resolutions.

Ban, whose presence at the summit had been criticised by the United States and Israel, also took Iran’s leaders to task for recent comments calling Israel a “cancerous tumour” that should be cut out of the Middle East. He urged both Iran and Israel to cool the bellicose language.

“I strongly reject any threat by any (UN) member state to destroy another, or outrageous comments to deny historical facts such as the Holocaust,” Ban said in his summit speech.

“Claiming another UN member state does not have the right to exist or describe it in racist terms is not only utterly wrong but undermines the very principles we have all pledged to uphold,” he said.

“I urge all the parties to stop provocative and inflammatory threats. A war of words can quickly spiral into war of violence. Bluster can so easily become bloodshed. Now is the time for all the leaders to use their voices to lower, not raise, tensions,” he said.

A total of 29 heads of state or government are attending the Tehran summit, including those of Afghanistan, India, Iraq, Lebanon, Pakistan, the Palestinian Authority, Sudan, Qatar and Zimbabwe. North Korea was represented by its ceremonial head of state, parliamentary president Kim Yong-Nam, rather than the country’s leader Kim Jong-Un.

Meanwhile, Presidents Mahmoud Ahmadinejad of Iran and Egypt’s Mohamed Mursi on Thursday discussed the Syrian conflict and their states’ severed diplomatic ties in their first-ever meeting, an official said.

“They emphasised the need to solve the Syria crisis via diplomacy and to prevent foreign intervention,” Iranian Deputy Foreign Minister Hossein Amir Abdollahian told Iran’s Arabic-language broadcaster Al-Alam. “They also discussed ways to boost the level of Tehran-Cairo relations,” he said.

The meeting took place in Tehran on the sidelines of a summit of the Non-Aligned Movement (NAM) at which Egypt handed over the organisation’s rotating presidency to Iran.

Ahmadinejad issued a statement afterwards saying he and Mursi had agreed each other’s country was a “strategic partner” in the region, but there was no word about restoring diplomatic relations.

On Syria, Ahmadinejad said the killing should stop and elections be organised, and that “Nato and the oppressive countries” should be prevented from intervening in Syria.

Mursi was quoted in the statement as saying the “problems” in Syria could only be resolved “with the help of influential countries in the region like Iran.”