A bomb exploded on a bus taking workers to the United States military air base at Kandahar in southern Afghanistan on Thursday , killing 8 people and wounding at least 16 others , among them 4 children , officials said .