A two-alarm fire broke out early Tuesday morning at an apartment building in Prince George's County. (Courtesy of Prince George's Fire)

All residents are accounted for after a fire at an apartment building in Maryland, officials said Tuesday.

Mark Brady, a spokesman for the Prince George’s County Fire Department, said on Twitter that after a secondary search, everyone in the building has been accounted for, including a family of four whom authorities were trying to locate earlier.

Three firefighters suffered burns and one resident suffered a smoke injury in the two-alarm fire that started around 3:30 a.m. in the 3900 block of Warner Avenue at the Verona complex in Landover Hills, according to Prince George’s County Fire officials.

The fire originated on the terrace level, and there was a partial collapse of one of the exterior walls on one side, fire officials said.

The firefighters suffered burn injuries but are expected to recover. At least 22 people were inside the apartment building and were safe.

Brady said there were reports of people trapped on balconies but when firefighters arrived many had gotten off them safely. About 80 firefighters responded and it took about an hour to put out the blaze.

Twenty-two people are displaced and the damage is estimated to be between $250,000 and $500,000, according to Brady.

The cause of the fire is under investigation.

Lamont Pettaway told NBC4 that he heard loud sounds and then saw the fire.

“We heard a loud pop. We heard a loud boom, and then once that happened, everybody got out,” he said. “We came on the balcony and we looked at it, and I was like, ‘Wow.’ ”

Another man who lived in the complex, Didier Tekum, told NBC4 he grabbed his baby and wife and they tried to get down a stairwell but couldn’t. They got out safely by climbing out through a balcony and a fire escape with help from neighbors.