An investigation is underway after a woman was found dead in a Brooklyn housing complex where nearly four dozen buildings and thousands of people lost electricity service for a few hours Sunday morning, the city fire department said.

Officials with Brooksville Company, the owner of the complex, said power was restored to the residential buildings at Spring Creek Towers, also known as Starrett City, around 10 a.m. Power went out shortly before 5 a.m.

More than 100 city firefighters responded to the site in East New York after all 46 buildings went dark.

The city police department said a 56-year-old woman was found dead in the complex. Police officials originally said she died because her respirator malfunctioned but it was not related to the power outage.

Later Sunday evening, the NYPD deferred questions to the FDNY, which said officials are investigating if there was a link.

Five other people reported minor injuries after the power outage. Three of them refused medical attention, while two of them were being examined at local hospitals.

Officials said city firefighters rescued several people stuck in some of the roughly 100 elevators at the housing complex, which is privately owned and privately operated.

There are nearly 6,000 apartments and more than 14,000 residents — most of whom are elderly — at Spring Creek Towers, which possesses an independent power plant outside the management of ConEdison.

Charles Barron, who represents the area in the New York state Assembly, said owners have neglected the ongoing power issues at the complex.

"If it happens once, it's too much for senior citizens. There are some people in apartments that are counting on electricity, they are counting on power to survive. It might be connected to oxygen," Barron said to members of the news media outside the housing complex. "Those are the people we are concerned about, and we want to know a report from everybody what's going on here. Because, I tell you, heads are going to roll if our people suffered."

Brooksville Company purchased Spring Creek Towers in May. Officials said the company has spent more than $40 million investing in the power plant and the initial phases of the overhaul, which is scheduled to begin in September. Officials say the plant will eventually have permanent backup generators.