Police officers detained a driver who hit a child and hid from the scene