A burglar was caught before he was able to steal valuables after getting stuck in a chimney during the break in, according to police in California.

The Ridgecrest Police Department said that they have arrested 28-year-old Keith Allen Schultz, after his friend called for help to rescue him from the chimney.

Schultz has been charged with one count of first-degree burglary. He was booked into jail, where he is being held without bail.

According to the criminal complaint, officers of the Ridgecrest Police Department were dispatched to the 500 block of W. Maime Avenue, after a residential burglary alarm was triggered.

After speaking with the alarm company, police dispatch received a call from an unknown female, who wanted to report that her friend was stuck in a chimney and needed help.

Coincidently, the burglary alarm and request for aid were at the same location. When officers arrived on the scene, they located Schultz, who was stuck inside of the chimney.

Officers also found signs of forced entry into the residence and an open back door. It is believed that Schultz attempted to break into the residence by climbing down the chimney, getting himself stuck.

His accomplice forced entry into the residence, attempting to free him, but triggered the home alarm instead. The accomplice fled the scene and remains at large.

Schultz was eventually freed from the chimney by the Kern County Fire Department, and taken into custody. After receiving a medical attention, Shultz was transported to the Central Receiving Facility in Bakersfield, for booking.