Nangarhar police chief Mohammad Sharif Amin told Reuters that a bomber detonated a car packed with explosives outside the consulate and an adjacent mosque.
The consulate was the intended target, he said, but most casualties were from the mosque.
Roads near the Indian consulate remained blocked as gunfire rattled through the area, deputy provincial police chief Masoom Khan Hashimi said.
Indian diplomatic missions have been targets of previous attacks in Afghanistan.
More top news
David Cameron wants to clear out international corruption, but is sweeping his own backyard first.
Persistent rain will affect much of Northern Ireland, Southern Scotland and Northern England for much of the day.
The 74-year-old Prisoner Cell Block H actress will face court next month charged with the indecent assault of a 13-year-girl in the 1980s.