The British sportsman was in Ontario with his Los Angeles Galaxy teammates for a match against Toronto FC but the game was marred when a rival fan hurled the missile.
Beckham, who was waiting to take a corner kick when the incident happened, was seen picking up the empty can and shaking it at the crowd.
After the match, which ended in a 2-2 draw, he slammed the person responsible for the incident, saying, ""Tonight was a great atmosphere. The majority were here to enjoy the spectacle. It's a shame some people spoiled it. It's disappointing kids see it... but it was a great atmosphere.""