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
Ex CPS boss says it was a "serious failing" by prosecutors not informing him of an investigation into allegations against Lord Janner.
Today there'll be plenty of sunshine across the British Isles with wispy cloud towards the coast.
A Star Wars-themed fleet of planes is set to take to the skies after Japan's Ana Airways announced a partnership with Lucasfilm.