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
A similar split set up to today
The Eagles of Death Metal want to be the first to play the Bataclan when it reopens, the lead singer has said in an emotional interview.
Cheap commercial spaceflight took one giant leap closer to reality after Blue Origin successfully landed a rocket - upright - in Texas.