The 17-year-old boy was trying to sneak back into his room at the Judson Center social services agency Thursday night when he got stuck. A worker at the center heard moaning and followed the noise to the chimney, authorities said.

Firefighters and police officers had to pull him out.

Police told The Detroit News the teen appeared to have suffered only scratches on his back. He was taken to a hospital as a precaution.