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 European Commission has ordered Ireland to recoup 13 billion euro from tech giant Apple over a sweetheart tax deal.
About 6,500 migrants have been saved off the Libyan coast in one of the largest rescue missions this year.
Amy Sharp, 18, posted the request on a Facebook post appealing for her whereabouts after she escaped from a police station.