At least 35 civilians have been killed and 13 more wounded as the Afghan military raided a Taliban hideout in the southern Helmand province on Monday.
According to provincial officials, the victims were attending a wedding party near the attack site when they were caught in the crossfire.
Officials said the house was being used by the Taliban to train suicide bombers.
"As a result of a joint operation in Musa Qala district of Helmand, 22 Taliban members were killed and 14 others arrested," the Afghan ministry said in a statement, adding that they arrested five Pakistani nationals and one Bangladeshi.
An investigation into reports of civilian casualties will be carried out, the ministry added.

Trump criticises Israel strike as US, Iran inch closer to deal, timing remains unclear
Israel says military attacks Hezbollah targets in Beirut's southern suburbs
Protesters smash windows and set Tesla ablaze in anti-G7 march in Geneva
Swiss voters reject population cap in referendum, avoiding EU clash
Zelenskyy says Ukraine hit oil facility, chemical plant in Russia
Sirens sound in Jordan due to technical malfunction, state TV reports
India Air Force plane crash kills all five onboard
Ukrainian strike kills one, wounds 3 in southern Russia
