The incident happened near Bherugarh railway station in Jhabua in Madhya Pradesh, he added.
"Pankaj (16) climbed on top of the wagon in the afternoon to click a selfie as reported by eye-witnesses. He came in contact with a high-tension overhead wire and got electrocuted," said Bamania Railway Protection Force officer Uday Pratap Singh.
A probe is underway to find out why the teenager had climbed on top of the wagon, he added.
(This story has not been edited by Business Standard staff and is auto-generated from a syndicated feed.)