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
Jose Mourinho is struggling to adapt to life in Manchester after taking the manager's job at Old Trafford this summer.
'Flushable' wet wipes are blighting beaches and blocking sewers, costing water companies and tax payers more than £80 million a year.
Two young children who survived the theme park ride crash in Australia reportedly watched helplessly as their mothers were killed.