He was stopped after a member of the public heard the girl call for help