A bomb hidden in an ambulance killed at least 40 people and wounded 140 in Afghanistan's capital Kabul on Saturday when it blew up near foreign embassies and government buildings.