A suicide bomber detonated explosives near the Pakistani consulate in the eastern Afghan city of Jalalabad.