The incident occurred in Herat Province on Wednesday.
Afghan authorities have launched an investigation into the attack.
Thousands of people have been killed in attacks carried out by the Taliban militant group and the NATO forces in Afghanistan over the past years.
Violence continues to plague the country despite the presence of thousands of foreign forces, more than a decade after the US - led invasion of Afghanistan in 2001.
According to a UN report released in February, over 2,750 people died and more than 4,800 were injured in attacks in Afghanistan last year.