According to BBC reports, the provincial government spokesman said the people were abducted as they collected firewood in the mountains.
They were then shot dead when local people tried to rescue them. The spokesman said an IS commander was also killed.
IS has been gaining some support in Afghanistan and in some areas is challenging the Taliban.