An off-duty FBI agent accidentally shot a man at a Denver nightclub on Saturday when his gun fell out of his waistband holster as he was doing a back flip while dancing.

The incident, which was caught on video and shared on Twitter by a local news reporter from 9 News, shows the man’s gun fall to the ground after he does a back flip. As the man reaches for the gun it discharges, hitting another person in the leg.

This @FBI agent was dancing at a Denver bar on Saturday night. Did a back flip, gun falls. He picks it up and a round is fired, hitting a man (he’ll be ok.) @DenverPolice investigating. #9News pic.twitter.com/MwV1WpNzAQ — Ryan Haarer (@RyanHaarer) June 2, 2018

ADVERTISEMENT

The man is then seen tucking the weapon back into his waistband, raising his hands and walking away from the crowd.

According to the local Fox News affiliate, KDVR, the person who was shot is hospitalized with a "good prognosis."

The club was evacuated a few minutes after the incident and the club has since said it will start using metal detectors, the station reported.

The FBI agent was questioned by Denver police and then released to an FBI supervisor, Denver’s 9 News reported.

Charges will be determined by the Denver District Attorney’s Office, and the Denver Police homicide unit is conducting an investigation, according to 9 News.