The incident took place on Thursday when Anupam Godara, who was preparing for a competition examination and his friend were taking a walk in the garden around at night. Godara took rest on an electric pole and was electrocuted, they said.
He was then rushed to SMS hospital where he succumbed to internal injuries, the police said.
After postmortem the body was handed over to parents who had came from Punjab after getting a call by police, they said.