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
Kane Gamble, 18, admitted targeting high-profile CIA and FBI figures from his family home Leicestershire.
As thousands approach race day this weekend, the British champion gave ITV News her best advice for runners taking on the 26.2 mile route.
Magician David Copperfield has been forced to reveal a trick after a British participant claimed he was injured during a performance.