The student told police he shot the videos because he had a “dirty mind.”