The Taliban, fighting to reimpose strict Islamic law after their 2001 ouster, resumed their campaign on Thursday after rejecting President Ashraf Ghani's request to extend their ceasefire beyond Sunday.
On Wednesday, they killed at least 30 soldiers and captured a military base in Badghis.
A senior security official in Kabul said the Taliban were fighting to capture eight checkpoints in Badghis. On Thursday, they gained control over two checkpoints and ambushed arriving reinforcements.
Haji Saleh Bek, governor of the Abkamari district, said 16 police were killed.
Another government official, Mohammad Naser Nazari, said the Taliban had planted a bomb on the body of a soldier that exploded when people attempted to retrieve the bodies. Two civilians were killed.
No one immediately claimed responsibility for the most recent attack, but the Taliban are active in Badghis and have repeatedly claimed attacks against Afghan security forces there.
Some critics have said Ghani's ceasefire allowed the Taliban to freely enter government-held areas and plan attacks.
In the Spin Boldak area of the southern province of Kandahar, on the border with Pakistan, the Taliban attacked a road construction company compound late on Thursday, a local government official said.
They abducted 13 engineers and 20 security guards, the official said. Four security forces were killed when they tried to rescue the hostages, all Afghan nationals. The Taliban did not immediately comment on the attack.
Last month, seven Indian engineers and an Afghan national working for a power plant were kidnapped in Baghlan province in the north, prompting several private international companies to reduce their presence in Afghanistan.
(This story has not been edited by NDTV staff and is auto-generated from a syndicated feed.)