Ex-teacher arrested on student-related sex offenses