Blast at Kabul religious gathering leaves at least 40 dead