Footage posted on social media showed the 12-story building quickly collapsing in a cloud of dust and debris.

Witness Captures Miami Beach Building Collapse on Video

RAW VIDEO: A witness captured the Miami Beach building collapse on video.

(Published Monday, July 23, 2018)

Miami Beach Fire Rescue confirmed that a man who was injured at the scene was transported to Jackson Memorial Hospital in critical condition. He was later identified as 46-year-old Samuel Landis.

Officials said everyone has been accounted for by the construction company but technical rescue teams searched the site to make sure there were no other victims. Search dogs assisted but no other victims were found, officials said.

New: Workers say this is a pic of 46 year old Samuel Landis. He was rushed to the hospital in critical condition after being struck by debris during a demolition on Miami Beach. @nbc6pic.twitter.com/ztDh5if0pC

Police said the building had a permit for demolition. The site is home to the old Marlborough House, an apartment building built in 1961 that was being taken down and set to be replaced by a new luxury high rise.

Winmar Construction said Landis worked for Allied Bean Demolition, which was performing the project's demolition work.

"Unfortunately, during the demolition, one of the Allied project managers was injured and was transported to the hospital for treatment," Winmar President Luis Leon said in a statement. "We continue to monitor his condition and our thoughts and prayers go out to Allied’s project manager and his family during this difficult time."

Witnesses said people were nearby watching as construction workers were demolishing the building when it collapsed.

"The building finally collapsed and it collapsed towards Collins Avenue and debris started flying towards us," one man said. "A boulder about the size of the front end of a car flew across the street, hit a man that was standing, one of the construction men, and the boulder hit him in the center of his chest and threw him probably about five feet."