Four Pakistani nationals were killed and 30 others wounded by gunfire at a mosque in Oman, Omani and Pakistani officials said on Tuesday, in a rare breach of security in one of the most stable countries in the Middle East.
According to Oman news agency, three gunmen were killed.
Pakistan's foreign ministry said the attack took place in the Ali bin Abi Talib mosque, known locally as the Imam Ali mosque.
Describing the incident in the Wadi al-Kabir district of Oman's capital Muscat as a "terrorist" attack, the Pakistani ministry said 30 injured people were in hospital.
Oman's police on Tuesday also reported the death of four people in the incident.
The attack came as Muslims observed an annual ritual.
"We are heartened that the government of Oman has neutralised the attackers," Pakistan's foreign ministry said in a statement.
Pakistan's ambassador to Oman was pictured visiting victims of the attack in hospital, according to video the embassy posted on X.
The US embassy in Muscat said it was following reports of the incident.
"US citizens should remain vigilant, monitor local news and heed directions of local authorities," it said in a statement.
According to Reuters, Islamic State has claimed responsibility for the attack.