A Taliban truck bomb killed several people and wounded dozens others when it exploded near a hospital in southern Afghanistan.