Officials say they were surprised to see the 9-year-old girl, who ran into the arms of a deputy