Police in northeastern China have detained a driver who plowed a car into a group of children outside a primary school, causing at least five deaths and 18 injuries, state media said on Thursday.