Militants had planted explosives at the grave site, said Ali Dowdah, the town's head.
Meanwhile, 15 people, including 3 top local officials, were killed when the Taliban attacked a government compound in central Afghanistan the same day, police officials said. 45 Taliban fighters were also killed in the attack on a highly secure compound in the Khuja Omari district.