The girl, a student of intermediate second year in AP Social Welfare Residential Junior College at Khambampadu village, was fed up with the lewd messages sent by her lecturer Chandrasekhar, DSP A Shankar Reddy said.
Unable to put up with the indecent messages, the victim ended her life by consuming pesticide, he said.
Soon after the incident, irate villagers allegedly thrashed the teacher and handed him over to Konduru Mandal Police, which registered a case and arrested him.
Meanwhile, students from the college demanded that the accused be booked under provisions of Nirbhaya Act.
J. Jayalalithaa passes away: Her life in pictures
Photos: Shah Rukh Khan, Deepika Padukone, Alia Bhatt at an awards show
Photos: Big B, Iulia Vantur at Himesh Reshammiya's album launch
Photos: Aamir Khan with 'Dangal' actresses at fashion show
Spotted: Twinkle Khanna, Shriya Saran at an event in Mumbai