The girl was treated at the scene before being taken to hospital, say police who are investigating.