Torahs in a burning synagogue in Brooklyn were rescued Thursday morning by firefighters who extinguished the blaze before it could spread to neighboring residential buildings, fire officials said.

Three New York City firefighters sustained nonlife threatening injuries at the fire, officials said.

"We were able to put the fire out on the first and second floor and enable access by one of our special operations members to the third floor and retrieve the Torah before it burned," according to Mike Madison of the FDNY public information office.

The alarm for the fire at Congregation Dvar Moshe-Hrdnk, 1073 E. 27 St., located in a three story converted residence, was received about 10 a.m., Madison said.

Sixteen fire companies with about 80 firefighters were involved in fighting the fire, which was brought under control about two hours after the alarm, Madison said.