An off-duty FBI agent in Denver did a backflip on the dance floor of a bar on Friday night . . . but his gun fell out of his pants and then it FIRED and hit a random guy in the leg. Fortunately, the guy is going to be okay . . . but charges may be coming against the agent.