An explosion at an Afghan primary and middle school killed 10 people and wounded 110, with officials tracing the blast to a neighboring explosives depot.