The pedestrian was taken to hospital with ankle injuries