Police: Nude photos on student's phone lead to teacher's arrest