The assault began at 3.35 am, when the gunmen reportedly opened fire on the consulate from a nearby house with machine guns and rocket-propelled grenades. One of them was shot dead while he was trying to scale the wall of the consulate.
Two other attackers were reportedly surrounded by over 150 security personnel, including soldiers of the Indo-Tibetan Border Police (ITBP), and shot. Nearly 10 hours later, the fourth man was also shot.
Afghanistan President Hamid Karzai called Indian Prime Minister-elect Narendra Modi, who thanked him for the work of the Afghan forces in rebutting the attackers. Mr Modi had earlier spoken to the Indian ambassador in Afghanistan and assured all help.
"I condemn the attack on our consulate in Herat, Afghanistan," Mr Modi tweeted. (Narendra Modi Speaks to Indian Ambassador to Afghanistan After Consulate Attack)
Afghan president Hamid Karzai has confirmed that he will attend the oath ceremony. (Read more...)
Herat, which lies near Afghanistan's border with Iran, is considered one of the safest cities in the country. (Also read: PM Manmohan Singh condemns attack on Herat consulate)
India has invested more than $2 billion in Afghan projects, including roads and power projects.
Get Breaking news, live coverage, and Latest News from India and around the world on NDTV.com. Catch all the Live TV action on NDTV 24x7 and NDTV India. Like us on Facebook or follow us on Twitter and Instagram for latest news and live news updates.