KABUL, Afghanistan — Afghan officials said Sunday that a NATO airstrike had killed 14 civilians, most of them women and children, in the southern province of Helmand on Saturday night.

Local officials said the strike was aimed at Taliban fighters and missed, hitting two family homes.

But in a conflicting account, a high-level NATO official said Sunday night that nine civilians were killed in the strike, which was aimed at five insurgents who attacked a coalition foot patrol and killed a Marine. The insurgents continued to fire from inside a compound when NATO forces called in the strike.

“Unfortunately, the compound the insurgents purposefully occupied was later discovered to house innocent civilians,” the official, Maj. Gen. John Toolan, commander of NATO forces in the Southwest region, said in a statement. The general apologized for the civilian deaths on behalf of all coalition forces, including Gen. David H. Petraeus, the top coalition commander in Afghanistan, and said the investigation into the episode was continuing.

“While I know there is no price on human life, we will ensure that we make amends with the families in accordance with Afghan culture,” he said.