A dog is dead after its leash became caught in the door of an elevator at a Toronto Community Housing building.

It happened around 4 a.m. on Thursday at 2743 Victoria Park Ave., north of Sheppard Avenue.

“When we arrived, we found that an elevator was stuck between the floors,” Toronto Fire Capt. David Eckerman told CityNews.

“We made voice contact with the man inside the elevator. He said, ‘we’re dying in here.'”

Eckerman said that the fire alarm in the building was ringing and had to be shut off so that crews could communicate with the man.

“When we got the door open, there was one male and one dog in the elevator. The dog was deceased,” Eckerman said.

It’s not known if the pair were leaving the building or returning.

It was not the man’s dog, but that of a female friend. She collapsed when hearing the news and had to be taken to hospital.

Toronto police are investigating as a precaution.