When the Red Sox invited 19 players who aren’t on the 40-man roster to major league camp, touted outfield prospect Bryce Brentz was conspicuously omitted.

Turns out, there was a good reason.

Brentz injured himself recently when his loaded handgun went off while he was cleaning it, general manager Ben Cherington revealed yesterday. The bullet entered Brentz’ leg and came out the other side, causing a wound that the Red Sox have classified as minor.

“It’s something that he’s going to recover from and be fine, and it won’t affect his baseball career,” Cherington said. “I guess you could say he got lucky, relative to what could have happened. I think he understands he got lucky, and it’s a serious thing and he’s got to be careful.”

Brentz is recovering in Fort Myers, Cherington said, but the 24-year-old slugger isn’t likely to be ready for the first few weeks of major league camp, prompting the Sox to rescind a non-roster invitation. But the Red Sox are hopeful Brentz will be able to play in games before spring training ends.

According to Cherington, the Red Sox don’t have a policy prohibiting players from legally owning handguns.