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
School funding is shooting up the list of voters' priorities as the General Election approaches, according to researchers.
The Conservative and Labour leaders are expected to use PMQs on Wednesday to push their main campaign messages.
Surrey Police has been criticised for handing back John Lowe his shotguns months before he went on to shoot his partner and her daughter.