A girl, 5, has died in Australia after being hit by a car while riding a scooter on a footpath near an elementary school, police have said.