All the four gunmen, who had stormed the Indian consulate in Afghanistan's Herat province early today, have been gunned down, Indo-Tibetan Border Police (ITBP) chief Subhas Goswami said.

"One terrorist was killed by ITBP personnel while three have been killed by Afghan forces. The attack has been successfully repulsed," he said.

The Director General also said that security at the Indian Embassy in Kabul and consulates in Jalalabad, Mazar-e-Sharif and Khandhar besides Herat has been beefed up and a high alert sounded to all Indian assets based across Afghanistan.

"We have been on alert. Our sister agencies have been providing intelligence inputs regularly about sabotage activities against us in Afghanistan. We have asked all our units to be on alert and vigilant," Goswami said.

Gunmen armed with heavy weapons including rocket propelled grenades today attacked the Indian Consulate in Afghanistan's Herat province. All the diplomatic staff were safe.

The ITBP, a paramilitary force under the Union Home Ministry, has recently bolstered its security at all Indian installations in Afghanistan by sending a squad of 80 trained commandos to the country.

A squad of 23 personnel was manning the Herat consulate when it was attacked today.