(CNN) An FBI agent's backflip at a club looked pretty impressive -- until he lost his gun and accidentally shot someone.

Video of the off-duty agent showed him unleashing a torrent of dance moves at a Denver bar early Saturday before launching into a back handspring.

But midflip, his weapon flew out from his waistband holster.

The off-duty law enforcement officer lost his gun as he performed a back handspring.

The agent lunged for his gun but accidentally fired it as he was picking it back up, Denver police said.

As the FBI agent grabbed his gun it accidentally fired, police say.

One person was struck in the lower leg but is expected to survive, Denver police said.

Read More