At least 40 people were killed in an explosion at a wedding hall in the Afghan capital Kabul on Tuesday, said two government officials.