The officer, who was investigating what seemed like a crime in progress, mistook the teenager for a suspect in a felony. The student was unharmed.