A former doctor armed with a large knife rampaged outside an elementary school in eastern China, stabbing eight young children to death and wounding five others Tuesday, a local official and a state news agency said. The assailant was arrested after the early morning attack as students were arriving for school, Xinhua News Agency said. His rampage was finally stopped by passers-by and school security guards, Xinhua said. The attacker, Zheng Minsheng, 41, worked as a doctor in a community clinic before resigning last June, Xinhua said, citing Huang Zhongping, spokesman for the Nanping city public security bureau. Zheng was known to have a history of mental illness. Eight children from Nanping City Experimental Elementary School were killed, and five were being treated at a hospital, Wu said. Six died at the scene.