A Red Sox fan on his way home from Yankee Stadium died Wednesday when he tried to climb on top of a Metro-North train and was electrocuted by overhead wires, creating a chaotic situation where riders were trapped for more than two hours, MTA officials and riders said.

The Metro-North train from Yankee Stadium to New Haven, Conn., left the ball field just before 11 p.m. on Wednesday. As the train was running from Larchmont to Mamaroneck about half an hour later, a pair of brothers tried to climb from inside a car onto the roof.

Train personnel got one brother down safely, but 24-year-old Michael Vigeant of Hudson, NH, touched a catenary wire and was electrocuted, said MTA officials.

The conductor called out over the loudspeaker for medical professionals to help the man as the power to the train went down, knocking out the air conditioning and flush toilets, riders said. Meanwhile, riders, many of whom had been drinking at the game, got more and more agitated. Some threatened to kick out the windows, and Yankee and Red Sox fans started beefing with each other.

MTA officials claimed that the train was only stopped for 30 to 40 minutes, but riders say it was more than two hours.

The train finally pulled into its final stop in New Haven at about 3:20 a.m. on Thursday.

The Yankees creamed the Red Sox 10-1 at the Wednesday night game.