A short time later , a suicide bomber detonated his explosives outside a nearby hospital as the wounded were arriving for treatment .