An off-duty FBI agent allegedly accidentally shot a man in the leg early Saturday after the agent’s gun fell from his holster on the dance floor of Mile High Spirits, according to a Denver police news release.

“The victim was transported to the hospital with a good prognosis,” the news release read.

The name of the agent wasn’t released because he hasn’t been charged, said Marika Putnam, a Denver police spokeswoman.

The man who was shot remains in the hospital Saturday afternoon.

“He appears to have non-life threatening injuries,” Putnam said.

Video of the incident obtained by Denver7 shows a man alleged to be the FBI agent dancing while surrounded by onlookers and then executing a backflip. During the flip, the gun appears to fly out of the man’s holster. The man in the video jumps to pick up the firearm and appears to fire the gun in the process. The man puts the gun back away in the back of his pants and holds up his hands as onlookers appear shocked and scared.

“When the agent retrieved his handgun, an unintended discharge occurred,” the release read.

Related Articles Police ID man allegedly shot to death by Uber driver on I-25 early Friday morning

The agent was taken to Denver police headquarters and was released to an FBI supervisor. The incident is being investigated by the Denver police homicide unit. Charges will be determined by the Denver district attorney’s office.