Updated

Firefighters spent an hour rescuing an Arizona teenager from a chimney where he got stuck after getting locked out of his home.

Firefighters from Scottsdale, Phoenix and Tempe fire departments were ultimately able to pull the 13-year-old boy to safety from inside the home Tuesday night.

The boy had tied an extension cord to a vent to climb down the chimney, but he got stuck inside. Realizing he was trapped, he called 911.

While the rescue was underway, firefighters worked on the rooftop and had spotlights lighting up the Scottsdale home.

They gave him a mask and goggles to protect him from dust disturbed by the removal process.

The boy's parents weren't home at the time, but firefighters reached a family member to look after the boy for the evening.