Girl gets caught by teacher