Machilipatnam (Andhra Pradesh): A 17-year-old student was allegedly hacked to death under Ghantasala police limits in Krishna district on Tuesday, officials said.

The accused,toddy planter Anjaneyulu, reportedly attacked the victim when he was coming back home from college on a bicycle, they said. The boy was found dead, in a pool of blood at a sugarcane field in Devarakota village. The victim is a second year ITI College student.

Speaking to PTI, Avanigadda Deputy Superintendent of Police V Pothuraju said, "The two were in an extramarital affair with a woman, leading to a dispute between them. All three belong to Vokkalagadda village of Challapalli mandal in Krishna district."

The woman separated from her husband after a fight, police said adding that she lives with her two children at her native village in Vokkalagadda.

"Anjaneyulu has been arrested. He has confessed to the crime," said the DSP.

A case was registered in Ghantasala Police Station and investigation is on based on the complaint lodged by the parents of the victim.