Taliban suicide bombers killed at least 19 people in an attack on a government office, officials say, in the latest episode of violence in Afghanistan as peace talks continue to end the war.
Election workers were registering voters in the southern Kandahar province on Saturday night when fighters of the hardline Islamist group launched an attack using four Humvee vehicles.
Eight election workers were killed, officials said. Eleven Afghan security force members were also killed along with the four suicide bombers.
The Taliban, which rejects the election process, claimed responsibility for the attack.
Taliban spokesman Qari Yousuf Ahmadi said the group's fighters also killed 57 members of the Afghan security forces in the attack and captured 11 others, but Afghan officials disputed the account.
The interior ministry in a statement said 25 Taliban insurgents were killed in the clash.
The Taliban, which controls or contests half the country, more than at any time since being overthrown by the US invasion in 2001, has rejected calls for a ceasefire.
Fighting between the Taliban and Afghan forces has intensified even as leaders of the Taliban and US officials hold peace talks in Qatar to end 18 years of war in Afghanistan.
In a separate attack, Taliban fighters killed eight Afghan soldiers and injured eight others at a military checkpoint in the western province of Farah, a local official said.
Mahmood Naemi, the deputy chief of the Farah council, said the clashes ended after Afghan forces launched air strikes.
"Many Taliban fighters were killed in the air strike," said Naemi.
In the northern province of Takhar, over 600 villagers fled as Taliban fighters seized large areas of the province during heavy fighting in recent days, government officials said.
The pace of talks between the US and Taliban in Doha has sped up as Afghanistan heads for presidential elections on September 28.
Qatar's government, which is mediating the peace process between the United States and the Taliban, on Sunday said the two sides discussed the withdrawal of foreign troops, preventing militants from using Afghanistan to harm the United States or other countries and a comprehensive ceasefire.
About 20,000 foreign troops, most of them American, are in Afghanistan as part of a US-led NATO mission to train, assist and advise Afghan forces. Some US forces carry out counter-terrorism operations.
The Taliban wants a complete withdrawal of foreign forces before they hold talks with the Afghan government or declare a ceasefire.