TOLUCA LAKE (CBSLA) – A man wanted in connection with a burglary investigation was rescued – and then arrested – Thursday after he got wedged between a wall and a building in Toluca Lake.

Cell phone video of firefighters rescuing the man. Aug. 30, 2018. (Courtesy video)

READ MORE: CHiPs For Kids Toy Drive Kicks Off For 2021

According to Los Angeles police, the incident appears to have begun at 11:30 p.m. Wednesday night, when a homeowner in the 10400 block of Whipple Street observed surveillance video that appeared to show a person on the property. The video never showed the person leaving, police said.

At some point Thursday, the homeowner searched the property and discovered the suspect somehow stuck between a wall and a garage. It’s unclear exactly how many hours the man was trapped before being found.

At around 8:10 a.m., Los Angeles Fire Department crews were called to conduct a rescue of the suspect. It took more than an hour for firefighters to free the man, who was taken to a hospital with minor injuries.

READ MORE: Group Running Free Mini Train Rides In Costa Mesa Gets $15,000 To Repair Vandalized Junction

The man was arrested on suspicion of trespassing, according to LAPD Officer Rosario Herrera.

He had been sought by investigators in connection with a burglary the night before his rescue in the same block where he was found stuck, Herrera

The arrest has left some neighbors shaken, including Bettina Cusumano, who was still in shock over what happened but grateful her family and neighbors are safe.

“We try and secure a place as best we can, but there are bad people out there,” Cusamano said.

MORE NEWS: Massive Warehouse Fire Likely Caused Foul Odor In Carson, Authorities Say

(© Copyright 2018 CBS Broadcasting Inc. All Rights Reserved. Wire services contributed to this report.)