A man in New York was crushed to death by a lift in a building that had recently been fined for unsafe elevator conditions.

Firefighters found the 30-year-old, whose name has not been released, trapped in part of the lift, which was stuck between the ground floor and the basement, according to a Fire Department spokesperson. The man was pronounced dead on the scene.

Three people were successfully rescued and appear uninjured, the spokesperson added.

The 23-storey building, called the Manhattan Promenade, had been fined by New York’s Department of Buildings in May for nearly $1,300. Inspectors had found that a safety feature had been disabled or tampered with on one of the building’s two lifts.

The Manhattan Promenade was ordered to stop using the lift until the problem was fixed, but tenants told the New York Times that the building had continued to use it. They said they were not aware of the tamped with safety feature, but that one elevator was shut down for a different problem on Wednesday.

2018: New York City sky turns neon blue after explosion at power plant Show all 8 1 /8 2018: New York City sky turns neon blue after explosion at power plant 2018: New York City sky turns neon blue after explosion at power plant Bright blue light is seen after a transformer explosion on Thursday at an electric power station in the New York City borough of Queens Twitter/Eat_Work_Run/Reuters 2018: New York City sky turns neon blue after explosion at power plant The sky flashed an eerie blue over New York City and social media users feared the worst. In the end, the explanation turned out to be somewhat more mundane: a problem at a local power plant Alexander C Kane/Twitter/AFP/Getty 2018: New York City sky turns neon blue after explosion at power plant "The lights you have seen throughout the city appear to have been from a transformer explosion at a Con Ed facility in Queens. The fire is under control, will update as more info becomes available," the New York Police Department tweeted AFP/Getty Images 2018: New York City sky turns neon blue after explosion at power plant Viewed from the Upper West Side of Manhattan, the night sky is alight as a Con Edison facility in the Queens borough of New York experiences a transformer explosion AP 2018: New York City sky turns neon blue after explosion at power plant The explosion seen from Manhattan AP 2018: New York City sky turns neon blue after explosion at power plant In this image taken from video, the night sky is illuminated in a bright, blue color after an explosion in the Queens borough of New York, Thursday, Dec. 27, 2018. New York police say a transformer exploded at a Con Edison facility in Queens. The explosion caused a bright, blue light that illuminated the New York skyline and caused a stir on social media. (AP Photo/Sophie Rosenbaum) Sophie Rosenbaum AP 2018: New York City sky turns neon blue after explosion at power plant Bright blue light is seen after a transformer explosion on Thursday at an electric power station in the New York City borough of Queens, U.S., in this picture obtained from social media on December 28, 2018. MANDATORY CREDIT FRANK NEW/via REUTERS THIS IMAGE HAS BEEN SUPPLIED BY A THIRD PARTY. MANDATORY CREDIT. NO RESALES. NO ARCHIVES. SOCIAL MEDIA Reuters 2018: New York City sky turns neon blue after explosion at power plant Bright light is seen after a transformer explosion on Thursday at an electric power station in the New York City borough of Queens, U.S., in this picture obtained from social media on December 28, 2018. MANDATORY CREDIT AMANDA OLIVEIRA LIMA/via REUTERS THIS IMAGE HAS BEEN SUPPLIED BY A THIRD PARTY. MANDATORY CREDIT. NO RESALES. NO ARCHIVES. SOCIAL MEDIA Reuters

“D.O.B. is investigating this incident aggressively and will take all appropriate enforcement actions,” Abigail Kunitz, a spokeswoman at the Department of Buildings, said in a statement. “Elevators are the safest form of travel in New York due to the city’s stringent inspection and safety requirements. We’re determined to find out what went wrong at this building and seek ways to prevent incidents like this in the future.”

Tenants told the New York Times that the building’s lifts were both a constant hazard.