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.

US snatches airman from Iran as Trump, Israel ratchet up pressure
At least 11 killed in Israeli airstrikes in Lebanon
Kuwait Petroleum Corp reports damage at units after Iran drone attacks
Bahrain's Gulf Petrochemical says fire under control after drone attack
Oman, Iran hold talks on ensuring transit through Hormuz
Israeli strike kills four Palestinians in Gaza, medics say
Death toll from Afghanistan floods rises to 77
At least 15 injured after vehicle slams into Louisiana crowd
