The unidentified agent was conducting the class at a the Callahan Center when he suffered the wound in the thigh, the Orlando Sentinel reported.
The shooting Thursday night was ruled an accident by Orlando police. He was treated and released at a hospital.
The presentation was part of a class called "The Game of Life, the Game of Golf" and was sponsored by the Orlando Minority Youth Golf Association.
The agent was explaining about making good life choices, and it included the gun presentation.
The agent emptied the gun of ammunition as he pointed it toward the floor, but when he released the slide it fired into his thigh. Apparently there was one round left in the chamber.
"Everyone was pretty shaken up, but the point of gun safety hit home," said Vivian Farmer, 52, who watched with her 13-year-old son.
2014: NFL Cheerleaders [PHOTOS]
Teen 'Trojan Man' seeks apology from school