More than 140 others were wounded when a bomb placed in an ambulance exploded in the Afghan capital, officials said.