A mortar bomb fired by the Taliban has hit a wedding ceremony north of Kabul, killing at least six people, Afghan officials have said.