Explosions and gunfire echoed near the Indian consulate in the eastern Afghan city of Jalalabad, an area that is also home to other foreign diplomatic missions.