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
Youngsters birthday party averts near disaster after group of strangers pull together to fill in for no-show party guests at last minute.
Duchess of Cambridge spoke of her family's new pet hamster while unveiling a new play area at Hampton Court Palace.
Despite heralding the arrival of a record 130 foreign journalists North Korea is still carefully coordinating what the press can see.