Posing as a teenage boy on Snapchat, a former Riverhead High School teacher solicited nude images from underage girls and sent them explicit images of himself, prosecutors said in announcing his guilty plea Monday.