The incident occurred in Tetali village near Tanuku in West Godavari district.
The boy lured the girl with the offer of chocolates and took her to a toilet of a local school and allegedly raped her. Three of his friends of the accused allegedly helped him by standing guard.
The incident came to light after the girl returned home and started bleeding. When questioned by her parents, she narrated the incident.
This is the second incident of rape of a minor girl in the state in three days. In Dachepalle of Guntur district, a 50-year-old man had raped a nine-year-old girl on Wednesday. The incident triggered public outrage.
The accused, a rickshaw puller, was Friday found hanging from a tree in a village near Dachepalle. Police said he committed suicide.
Get the latest election news, live updates and election schedule for Lok Sabha Elections 2019 on ndtv.com/elections. Like us on Facebook or follow us on Twitter and Instagram for updates from each of the 543 parliamentary seats for the 2019 Indian general elections.