SAN FRANCISCO (CBS SF) – A two-alarm fire at a four-story building in San Francisco’s Dogpatch neighborhood has been controlled Thursday afternoon.

The fire was reported at 2:45 p.m. on the top floor of 2065 Third St., a residential building near Mariposa Street, fire spokeswoman Mindy Talmadge said.

READ MORE: Health Experts Warn COVID Rapid Tests Are Less Reliable Than PCR

When firefighters arrived at the scene, they saw heavy smoke and flames in the building, fire Chief Matthew McNaughton said.

Crews brought a hose through the stairwell to the top of the building, McNaughton said.

The blaze was controlled at 3:34 p.m.

McNaughton said crews searched the building and helped one person and a dog safely out of the building. No injuries were reported, he said.

The resident of the unit affected by the flames, Jeff Smolinski, arrived at the scene around 3 p.m. to see fire crews surrounding his building.

READ MORE: Splash Brothers Shoot Warriors Past Timberwolves 124-115

Smolinski, who has lived in the building for two and a half years, lives with his wife, two kids and dog. He and his family are moving to Colorado next week, he said.

Smolinski, who was waiting with other evacuated residents on the sidewalk across the street on Third Street, was reunited with his dog after fire crews had put it out on the unit’s balcony until the blaze was under control.

The roof, where the fire started, can be accessed by anyone from the stairwell, Smolinski said.

Talmadge said the fire is believed to be accidental, but the cause has yet to be determined.

Third Street between Mariposa and 17th streets were blocked off as crews fought the fire.

MORE NEWS: Woman Found Dead During Visit With Friends at Home in Rohnert Park

(Copyright 2012 by CBS San Francisco and Bay City News Service. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)