At least 62 people were killed after an explosion which caused the roof to collapse on worshippers gathered at a mosque in eastern Afghanistan for Friday prayers.