A man who walked into a mixed martial arts studio with a loaded gun ended up heading to hospital after he was "subdued by another male inside the facilty", police said.

Matthew Lloyd was carrying a “black messenger-style bag" as he entered Defiant MMA in Burbank, California.

It is unclear what his intentions were, but local media reported that police suspect the 30-year-old was about to attempt an armed robbery.

When police arrived at the scene, Lloyd was “being subdued by another male inside the facility."

Lightweight MMA fighter Jacobe Powell, knocked a bag containing a gun out of the suspect's hand and pinned him down until officers arrived to take him into custody, Burbank Police said in a statement.

Boxing vs MMA: A history Show all 8 1 /8 Boxing vs MMA: A history Boxing vs MMA: A history Boxing vs MMA: A history Floyd Mayweather's fight with Conor McGregor will not be the first time two stars from the worlds of boxing and MMA collide. Zuffa LLC via Getty Images Boxing vs MMA: A history Muhammad Ali vs Antonio Inoki This 15-round flop was declared a draw, with The Greatest throwing just six punches. Getty Images Boxing vs MMA: A history Royce Gracie vs Art Jimmerson Poor 'one-glove' Jimmerson didn't stand a chance against Brazilian jiu jitsu star Gracie at the first UFC. Getty Images Boxing vs MMA: A history Ray Mercer vs Tim Sylvia 'Merciless' Mercer finished Sylvia in the cage, when the UFC heavyweight champion renegaded on a gentleman's agreement not to throw kicks. Getty Images Boxing vs MMA: A history Kimbo Slice vs Brian Green Kimbo, real name, Kevin Ferguson , had spells in both MMA and boxing but never replicated the success of his infamous back-alley brawls. Getty Images Boxing vs MMA: A history Ricardo Mayorga vs Wesley Tiffer Mayorga thought he had stopped mixed martial artist Tiffer in the cage, only to be disqualified because of an illegal knee to the spine. Getty Images Boxing vs MMA: A history Randy Couture vs James Toney Toney talked up his chances inside the Octagon. But it took UFC legend Couture just three minutes and 19-seconds to beat him via an arm-triangle choke. Getty Images Boxing vs MMA: A history Boxing vs MMA: A history A number of other high-profile boxing vs MMA clashes have been mooted, only never to transpire. Anderson Silva vs Roy Jones Jr falls into this category. Getty Images

“In order to protect himself, the instructor used martial arts techniques to control and subdue the suspect until police arrived,” they added. “It was learned the suspect was in fact armed with a loaded handgun, which was inside the messenger bag.”

No shots were fired within the gym.