KABUL: Gunmen armed with machine guns and rocket-propelled grenades attacked an Indian Consulate in western Afghanistan on Friday, though its diplomatic staff escaped unharmed, police said.

At least three gunmen opened fire on the consulate from a nearby building in Herat, provincial police chief Abdul Sami Qatra said. Qatra said police and soldiers killed three assailants in a gunbattle that saw the building catch fire as authorities evacuated neighbors.

Syed Akbaruddin, a spokesman for India's Ministry of External Affairs, said a deployment of the paramilitary Indo-Tibetan Border Police at the consulate held off the assault until Afghan forces arrived. He said all the Indians at the consulate were safe.

''Our consulate and our diplomatic presence in Afghanistan have been under threat,'' Akbaruddin told TimesNow TV, without elaborating.

No group immediately claimed responsibility for the attack.

However, a group called Ansar al-Tawhid that appears to be based in Afghanistan posted a video online May 17 that threatened India, according to the SITE Intelligence Group, which monitors extremist websites.

Herat lies near Afghanistan's border with Iran and is considered one of the safer cities in the country. In September 2013, Taliban gunmen launched a similar assault on the US Consulate in the city, killing at least four Afghans but failing to enter the compound or hurt any Americans.

Foreign embassies and consulates remain a favorite target of insurgents in Afghanistan, but many are protected by high walls and multiple gates, as well as security forces.

India has invested more than $2 billion in Afghan projects, including roads and power projects.

Afghan President Hamid Karzai spoke to India's Prime Minister-designate Narendra Modi after the assault and called it ''an attack on Afghanistan, India and our shared interests,'' according to a statement.

But India remains a target. In August 2013, a botched bombing against the Indian Consulate in the Afghan city of Jalalabad near the border with Pakistan killed nine people, including six children.

No Indian officials were hurt.

Two attacks on the Indian Embassy in Kabul in 2008 and 2009 killed 75 people.

Groups known for targeting Indian interests include Lashkar-e-Taiba (LeT) , which was blamed for the 2008 attack on the Indian city of Mumbai that killed 166 people, and the Haqqani network, which is based in Pakistan's lawless tribal areas along the border with Afghanistan.

Lashkar-e-Taiba has been active in Afghanistan in recent years, often teaming up with insurgent groups operating in the eastern part of the country near the frontier with Pakistan.

In 2010, two Kabul guest houses popular among Indians were attacked, killing more than six Indians. India blamed that attack on the group.

Pakistan condemned the attack in a statement, saying that ''no cause justifies (the) targeting of diplomatic missions.''

The violence comes as Afghans prepare for a second round of presidential elections on June 14.

The first round was relatively peaceful, but no candidate won a majority forcing a runoff vote between the top two candidates, Abdullah Abdullah and Ashraf Ghani Ahmadzai.

Opinion

Editorial

Military convictions
Updated 22 Dec, 2024

Military convictions

Pakistan’s democracy, still finding its feet, cannot afford such compromises on core democratic values.
Need for talks
22 Dec, 2024

Need for talks

FOR a long time now, the country has been in the grip of relentless political uncertainty, featuring the...
Vulnerable vaccinators
22 Dec, 2024

Vulnerable vaccinators

THE campaign to eradicate polio from Pakistan cannot succeed unless the safety of vaccinators and security personnel...
Strange claim
Updated 21 Dec, 2024

Strange claim

In all likelihood, Pakistan and US will continue to be ‘frenemies'.
Media strangulation
Updated 21 Dec, 2024

Media strangulation

Administration must decide whether it wishes to be remembered as an enabler or an executioner of press freedom.
Israeli rampage
21 Dec, 2024

Israeli rampage

ALONG with the genocide in Gaza, Israel has embarked on a regional rampage, attacking Arab and Muslim states with...