The explosion struck the diplomatic quarter of Kabul, with dozens of casualties reported.