Cop Who Taught Sexting Class to Eighth Graders Resigns After Sending Them 'Inappropriate Messages'