HERAT, Afghanistan—An explosion tore through a crowded mosque in western Afghanistan, killing at least 18 people. including a prominent cleric close to the Taliban, Taliban representatives and a local medic said. At least 23 people were hurt. The explosion in the city of Herat on Sept. 2 left the courtyard of the Guzargah Mosque littered…