Lebanese Prime Minister Saad Hariri said in a statement, "I vigorously condemn the terrorist attack that targeted the Grand Mosque in Makkah, which plotted for committing one of the most heinous crimes against Islam and Muslims".
Mansour al-Turki, security spokesperson of the ministry, said operatives stopped a plot to attack the mosque on Friday.
"The Islamic Republic of Iran once again warns all states and particularly regional countries against this ugly and sinister phenomenon (of terrorism)", Qasemi was quoted as saying.
Saudi Arabian authorities have foiled a terror attack as a suicide bomber blew himself up close to Mecca's Grand Mosque. It said the operation was planned by three terrorist groups, two based in Makkah and the third in Jeddah.
Saudi state television has aired footage after the raid near the Grand Mosque in Mecca, showing police and rescue personnel running through the neighborhood's narrow streets where security forces confronted a suicide bomber.
Saudi authorities have arrested around 40 people, including Saudis and Pakistanis, for alleged extremist links since July a year ago, when a suicide bombing near the Prophet's Mosque in Medina killed four members of its security forces.
The Kuwaiti emir lauded the Kingdom's role in combating terrorism and the vigilance of its security forces in thwarting this despicable scheme.
He was killed while the blast wounded six foreigners and five members of security forces, according to the Interior Ministry's statement.
Lebanon's Hezbollah has condemned a bombing near the Grand Mosque in Mecca.
Mohammed bin Salman is also the architect of Saudi Arabia's intervention in the civil war in Yemen.
Earlier, an official source at the Kuwaiti Foreign Ministry expressed Kuwait's strong condemnation of the despicable terrorist plot.
Both Iran and Qatar on Saturday voiced support for Saudi Arabia over a suicide bombing near Islam's holiest site in Makkah despite their severed ties. He has also offered aggressive comments about the kingdom confronting Iran.
The ministry did not name the group involved in the attack.
At least 13 people were killed in an explosion at a mosque in the Asir region of southwestern Saudi Arabia in August 2015 and five more in an attack on a Shia mosque in Saihat, on the country's east coast.