U.S.-led coalition says its troops have killed 25 militants and eight Afghan civilians held hostage by militants in southern Afghanistan.

A coalition statement says its forces were ambushed from a building along a road in Uruzgan province on Sunday. It says the militants then moved into a compound where they held 11 noncombatants hostage, including several children and an infant.

The coalition says the troops called in an airstrike on the compound without knowing the civilians were inside. Eight civilians were killed and three were wounded.

The coalition regularly accuses militants of using civilian homes they commandeer to attack foreign and Afghan troops.