The gunmen were armed with machine guns and rocket-propelled grenades as they attacked the consulate early Friday morning. Officials said that no diplomatic staff were injured in the attack, while one of the gunmen was killed by India's Indo-Tibetan Border Police and the other three were killed by Afghan forces.
"One terrorist was killed by ITBP personnel while three have been killed by Afghan forces. The attack has been successfully repulsed," said Indo-Tibetan Border Police chief Subhas Goswami.
Goswami added that security at other diplomatic missions in Kabul, Jalalabad, Mazar-e-Sharif and Kandahar had been beefed up .
The attackers were reported to have entered houses around the consulate before firing at the compound. One of the attackers was shot at while trying to climb the wall surrounding the consulate, and the ITBP held off the attackers until they were joined by Afghan forces.
The attack comes on the eve of Indian Prime Minister-designate Narendra Modi's swearing-in ceremony, which will be attended by Afghan President Hamid Karzai. Modi said he condemned the attack, and that he was "closely monitoring the situation." He also thanked Karzai for the "efforts of Afghan forces in thwarting (the) attack on India's consulate in Herat".
"I condemn the attack on our consulate in Herat, Afghanistan. Closely monitoring the situation. I have spoken to the Ambassador as well," Modi posted on Twitter.
Karzai assured Modi that his government would do all it could to ensure the safety of Indian missions in the country.
Notable deaths of 2014 [PHOTOS]
Migrant abuse claims bring German police probe