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 look ahead to the forecast for today across the UK.
People have been warned to prepare for cold weather as ice and snow is set to hit parts of the UK.
There is concern that the lack of clean water could add mean more people fall victim to the worst recorded cholera outbreak in history.