A crane operator has been rescued after being trapped by a blaze at a Kingston, Ont. construction site, the National Post reports.

City officials say the fire is largely under control, but residents are still advised to stay away from the area. Power shut off earlier in the area for safety reasons is slowly being restored.

Gas services were not affected, according to the city.

The blaze broke out Tuesday afternoon at Princess and Victoria Streets, according to CTV News. It began around 2 p.m. at a student housing complex under construction, Kingston police Const. Steve Koopman told CBC, and a rescue helicopter from CFB Trenton arrived around 4 p.m.

The crane operator is believed to have minor injuries, Kingston Police tweeted, and has been taken to hospital.

Story continues below slideshow

Loading Slideshow...
  • A crane operator sits on top of crane stranded from the fire below in Kingston, Ont., on Tuesday, December 17, 2013. The man was later rescued by Search and Rescue Helicopter from CFB Trenton.

  • A search and rescue helicopter rescues a crane operator during a fire in downtown Kingston, Ont., Tuesday, Dec.17, 2013.

  • A search and rescue helicopter lowers a worker to rescue a crane operator during a fire in downtown Kingston, Ont., Tuesday, Dec.17, 2013.

  • A crane cabin is destroyed from a fire below but the crane operator managed to crawl to the end of the crane to be rescued by a helicopter in Kingston, Ont., on Tuesday on December 17, 2013.

  • Firefighters battle a major fire in downtown Kingston, Ont., Tuesday, Dec.17, 2013.

  • Firefighters battle a major fire in downtown Kingston, Ont., Tuesday, Dec.17, 2013.

  • A firefighter surveys the scene during a major fire in downtown Kingston, Ont., Tuesday, Dec.17, 2013.

  • Firefighters battle a major fire in downtown Kingston, Ont., Tuesday, Dec.17, 2013.

  • From: <a href="https://twitter.com/ChrisInKingston/status/413029235214020609/photo/1" target="_blank">ChrisInKingston, Twitter</a>

  • From: <a href="https://twitter.com/ChrisInKingston/status/413031205093654528/photo/1/large" target="_blank">ChrisInKingston, Twitter</a>

  • From: <a href="https://twitter.com/ChrisInKingston/status/413032797016981504/photo/1" target="_blank">ChrisInKingston, Twitter</a>

  • From: <a href="https://twitter.com/ChrisInKingston/status/413045118199816192/photo/1" target="_blank">ChrisInKingston, Twitter</a>

  • From: <a href="https://twitter.com/ChrisInKingston/status/413045601316929536/photo/1" target="_blank">ChrisInKingston, Twitter</a>

More from The Canadian Press:

KINGSTON, Ont. - In a dramatic rescue Tuesday that drew a gasping crowd, a military helicopter swooped in to airlift a worker trapped on a construction crane above a massive fire in Kingston, Ont.

Police said the crane operator suffered only minor injuries after being stranded when the blaze broke out around 2:15 p.m. at an apartment building that was under construction.

John Ashie was working at his family's car dealership down the street when his father asked him about the black smoke that was rising above the neighbourhood.

The 22-year-old stepped onto the street just in time to see bright orange flames burst through the roof of the five-storey apartment complex that takes up at least one city block.

"Thirty seconds went by and then the whole top was up in flames," Ashie told The Canadian Press. "It seemed kind of out of control at that point, by the time the first fire truck got there."

Not long after, those who had gathered to watch fire officials battle the blaze noticed a figure perched atop a construction crane at the burning apartment complex.

"He actually had to get out of the little booth he was in and walk across the entire length of the crane, which would have been frightening enough," said Ashie. "He had to sit on the edge of the crane, and about 15 minutes later the flames were so big they were going up above the crane."

There were a few anxious moments as those on the ground watched the fire continue to grow.

"As the flames started to get bigger and bigger and bigger, it started to get pretty worrisome," said Ashie. "He must have been going through hell up there."

A Griffon helicopter deployed from CFB Trenton plucked the worker from the crane at 3:35 p.m. and took him to a waiting ambulance. Police said all the other construction workers at the site are believed to be accounted for.

The entire episode was like something out of an action film for some of those who watched it unfold.

"Especially when the helicopter guy was rescuing him from the crane, everyone was like, 'Oh my god! I can't believe this is happening it's just so surreal,'" said Ashie, adding that as the building at the centre of the blaze was destroyed, observers heard a series of blasts as propane tanks on the site blew up.

Another worry for officials as fire crews fought the flames was a concern the blaze could spread to nearby buildings, including a hotel and a gas station.

Police went door-to-door advising residents to evacuate and at least one home near the burning building caught fire.

Observers also saw flames leap across a street to structures on the other side.

"When the building was up and the fire was still burning, some of the signs, like the billboards on buildings across the street, were catching fire," said Darryl Spring, program director at radio station K-Rock 105.7.

Spring said the heat from the fire was intense and despite a -28C wind chill "my face was hot from being that close to it."

Utilities were shut down in the area to make it safe for those battling the fire.

Meanwhile, city buses were pressed into service to shuttle residents who lived within a few blocks of the blaze to an evacuation centre.

Police said they'll be advising residents when they can re-enter the evacuation zone for pets or other items.

— By Diana Mehta and Peter Cameron in Toronto.