England scored the only goal of the game midway through the first half when Barry met Stewart Downing’s cross only to see his header hit Daniel Majstorovic and nestle into the corner of the net.
The strike would have been Barry’s third in his 50 England games, but he found out after the match that the landmark goal had gone down as the Swede's, with the ball only finding the corner thanks to his accidental diversion.
"I've just been told it's going down as an own goal,” Barry told The Sun.
"It would have been great to score the 2,000th goal and I'm a bit disappointed but I'm not a goalscorer so I won't be crying too much."
Majstorovic added: "It should be given to Barry. He headed it and it came off me. I know it was a special goal but I don't want to be in the record books."
How do you stay up to date with football when on the move? With http://m.goal.com – your best source for mobile coverage of the beautiful game.