The attack on the mine-clearing workers came late on Tuesday in Baghlan province, where fighting has been heavy in recent weeks.
“The Taliban entered a compound of a mine-clearing agency… and started shooting everyone,” interior ministry spokesman Tareq Arian told reporters on Wednesday.
Provincial police spokesman Jawed Basharat said the workers were with the Halo Trust, the largest demining organisation in Afghanistan.
“The Taliban brought them into one room and opened fire on them,” Basharat said. Fourteen people were wounded in the attack, he said.
A Taliban spokesman did not immediately respond to a message-seeking comment. Halo Trust also did not immediately respond to a request for comment.
After decades of conflict, Afghanistan is strewn with mines and unexploded ordnance, and agencies have been working to clear them in the years since the Taliban were ousted in 2001.