6:39 AM PT -- 6/9 -- The arrest warrant affidavit lays out exactly what the alleged victim claims happened the night he was shot ... and it sounds like he was actually trying to prevent Pooh from potentially firing at others.
According to the document, obtained by TMZ, the security guard in question -- who alleges he was shot by PS -- told police who arrived on the scene that as he was trying to escort Pooh out of the building following his show, someone started grabbing at stray bills in the dude's back pocket ... which the guard claims pissed Pooh off, who went back on stage to find out who'd gotten handsy with him.
The security guard claims he then saw a gun that was clearly visible from Pooh's waistband ... and that he tried telling Pooh to hide it and not take it out. The guard says he, again, tried escorting Pooh from the building safely ... but then, on the drop of a dime, Pooh allegedly turned around and fired one shot back into the area ... which the guard says hit him in the ankle. He also says he jumped out of the way when it happened -- which he thinks might've saved his life. The guard claims Pooh handed the gun off to someone ... and they all split.
The police say they determined Pooh had fled the state of Florida, and after having the alleged victim point him out in a photo lineup as the alleged perp ... they started the process of extraditing him. Obviously, they were successful in wrangling him back in.
Rapper Pooh Shiesty has just been arrested over a shooting that went down at a Miami club ... where cops say a security guard ended up getting shot in a dispute over money.
According to Miami-Dade County Corrections records ... the rapper was taken into custody Tuesday around 2 PM on a warrant for his arrest for aggravated battery with a deadly weapon ... a felony.
According to the police report, obtained by TMZ, Miami-Dade PD was called out to the King of Diamonds nightclub back on May 30 around 4 AM for a reported shooting.
Cops say witnesses told them security staff was escorting Pooh out of the building when, out of nowhere, there was an altercation between Pooh and security staff. Cops say the security manager told them the beef was over money that had apparently fallen out of Pooh's pants.
It's unclear how much, if any, money fell ... but apparently, it was enough to set off Pooh 'cause cops say they were told the Memphis MC took out his gun and fired off a round toward the ground.