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
The SNP Party conference is, according to its press office, 'the hottest ticket in town'.
The Tories know the NHS is a weak spot for them, so why did the Prime Minister choose to focus on the issue today?
David Cameron has admitted the General Election is on a "knife-edge" as he tried to woo voters with the promise of a "truly seven-day" NHS.