Police say a homeless man sleeping outside a bar responsible for stopping a burglary

In this undated photo released by the Los Angeles County Sheriff's Department shows a what appears to be a BB gun that officials say Darius Smith, 15, used during the robbery of an off-duty federal law enforcement officer. Surveillance video corroborates the officer's account that he was being robbed when he killed Smith and wounded another teen last week, authorities said Thursday, June 1, 2017. (Los Angeles County Sheriff's Department via AP)

According to authorities, a homeless man sleeping near a Houston bar is responsible for getting two thieves off the streets.

At around 11:30 p.m. on Wednesday night, two thieves reportedly pried open the door of El Zorro nightclub, located in a shopping center on De Moss near Fondren in Sharpstown.

RELATED: Hurricane Harvey’s toll on Houston trial evidence coming to light

A homeless man who said he found shelter at a nearby car wash spotted the break in and used a cell phone to call police.

Authorities arrived to find the men inside the bar attempting to steal an ATM machine and flat screen TVs.

Police say the two criminals backed an SUV up to the door, which contained some stolen items, including TVs and a laptop.

The suspects fled the scene with police in pursuit upon their discovery; during the chase, authorities allege one of the thieves threw a pistol up onto the roof of the building.

The Houston Fire Department authorities said they recovered the weapon; K-9 units eventually arrived and located the suspects, both of whom police arrested, records show.

RELATED: Houston’s lawmakers respond to Trump’s controversial immigration comments

According to reports, the suspect who threw the gun did so while he served time on parole and wearing body armor.

Police say he will be charged with felony possession of a fire arm, and both suspects will be charged with burglary of a habitation and evading arrest on foot.

What do you think?

Harry and Meghan were greeted by legions of adoring fans when they visited a 2,000-year-old castle

Dylan Farrow tearfully recounts alleged sexual abuse at the hands of her adoptive father Woody Allen