Saudi Arabia has hit back after Iran vowed to take legal action against the kingdom's rulers over the crush of Muslim pilgrims at this year's hajj, which killed at least 769 people, including 136 Iranians.

Saudi Arabian foreign minister Adel al-Jubeir responded to Iran's criticism, telling reporters in New York: "I believe that the Iranians should know better than to play politics with a tragedy that has befallen people who were performing their most sacred religious duty, which is the pilgrimage."

Thursday's tragedy in Mecca has led to an escalation of tension between the regional arch-rivals.

The pilgrims suffocated or were trampled to death when two massive crowds converged on a narrow street, in the worst disaster to occur during the annual pilgrimage in a quarter-century.

Shiite Iran has accused Sunni Saudi Arabia of mismanaging the pilgrimage, which draws around two million people from 180 countries.

Iranians comprise the largest group of casualties identified so far. Iranian state TV says a former ambassador to Lebanon, as well as two Iranian state TV reporters and a prominent political analyst are among those still missing and the semi-official Fars news agency said a former ambassador to Slovenia was among the dead.

"Under international law, this incident is absolutely subject to prosecution. The Al-Saud must be responsive," Iran's state prosecutor Ebrahim Raisi said, referring to Saudi Arabia's ruling family.

He said Saudi authorities blocked a road used by hajj pilgrims to allow a royal convoy to pass through, causing the deadly convergence in the town of Mina on the outskirts of Mecca.

"They have to know that we will pursue the trial of Al-Saud for the crime they have committed against the hajj pilgrims through international courts and organisations."

Neither Iran nor Saudi Arabia is a state party to the International Criminal Court and only the court's prosecutor can file charges. Iran could try to file a case at the International Court of Justice, which handles disputes between nations but does not mete out criminal justice.

Saudi Arabia has not responded to the Iranian accusations regarding the convoy. Saudi interior ministry spokesman Major General Mansour al-Turki said a VIP convoy travelling through Mina on Thursday, which included foreign dignitaries, had nothing to do with the incident and was in a different part of town. He said VIPs used their own roads in Mina.

Iran and Saudi Arabia are bitterly divided on a host of regional issues and support opposite sides in the wars raging in Syria and Yemen. The accusations of mismanagement of the pilgrimage strike at a key pillar of the Saudi royal family's prestige -- King Salman holds the title of the "custodian of the two holy mosques".

Iran's President Hassan Rouhani began an address to the United Nations General Assembly by expressing "regret over the heart-rending incident" emphasising the "need for swift attention" to an investigation into "this incident and other similar incidents in this year's hajj".

Mr al-Jubeir, speaking on the sidelines of his meeting with US secretary of state John Kerry, said: "We will reveal the facts when they emerge. And we will not hold anything back. If mistakes were made, who made them will be held accountable. And we will make sure that we will learn from this, and we will make sure that it doesn't happen again."

Mr Kerry said: "I think all of us are really focused on the loss of life and not on pointing fingers." But he added: "I'm glad that the minister has spoken to the accountability Saudi Arabia will engage in."

Mr Rouhani told a group of editors on Friday that both the stampede and the collapse of a crane on the Grand Mosque in Mecca earlier this month - which killed another 111 people - suggested "ineptitude" on the part of Saudi authorities.

Iran's foreign ministry, meanwhile, summoned the Saudi charge d'affaires for a third time in three days to protest over Riyadh's handling of the disaster.

The Saudi health ministry said on Twitter that the toll from the hajj disaster stood at 769 pilgrims killed and 934 injured, updating previous figures. It did not provide the nationalities of the dead and injured.

The hajj is one of the five pillars of Islam and all able-bodied Muslims are required to make the pilgrimage to Mecca at least once in their lives.

On Saturday, the final day of the hajj, pilgrims streamed into Mina's Jamarat, a multi-storey complex with crowd-monitoring technology and wide ramps for large crowds to perform the final rites of the pilgrimage.

Muslims believe the devil tried to talk the Prophet Ibrahim, or Abraham as he is known in the Bible, out of submitting to God's will in Mina. In one of the final steps of the hajj, pilgrims throw stones at three large pillars in a symbolic casting away of evil.

Saudi security forces were on hand to spray pilgrims with water to help keep them cool as temperatures reached 38 degrees Celsius. Large fans were also set up to spread mist.

Sudanese pilgrim Abdullah al-Muzbahi, 42, stood to the side in Jamarat with his hands outstretched in supplication and prayer after completing the stoning ritual. He said that from his perspective, this year's hajj went smoothly and that Saudi officials appeared to be doing all they could to safely manage the pilgrimage.

"The problem is in the culture of pilgrims, who are not organised or patient," he said.

Saudi pilgrim Misfir al-Yami, 28, said the large crowds should be directed better to reach certain holy sites in smaller waves. He said it was the responsibility of both the security forces and the pilgrims to ensure the hajj was safe.

Syrian pilgrim Samar Zaki, 37, said there were times when she was in the midst of very large crowds that she worried for her safety.

"There are times when it is challenging," she said. "I saw (news) about the accident that took place and it made us all very upset."

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.