Former Boston mayor Ray Flynn was involved in an accident in which a vehicle struck a building on Thursday.

The accident, according to a statement from Mayor Martin J. Walsh’s Office, occurred “while (Flynn was) driving near his home in South Boston.”

“Thankfully, Mayor Flynn was not injured, however he has been transported to a local hospital as a precaution,” the statement released Thursday afternoon said, adding that emergency medical services did respond to the scene.

An accident on Flint Place was reported at 12:46 p.m., Boston Police Lt. Michael McCarthy said Thursday.

According to city records, Flynn owns a home on Flint Place in South Boston.

It was a one vehicle accident, McCarthy said, and the driver was a male who was taken to an area hospital with non-life threatening injuries.

McCarthy could not confirm if the male driver was Flynn, but said that the accident referred to by the mayor’s office in its statement is the same accident that occurred on Flint Place.

Boston Police Captain John Greland posted photos online Thursday of a motor vehicle accident “near Marine Road.” Flint Place is a small, dead end street off of Marine Road. The images shared by Greland show a large hole in a brick foundation of a building and a vehicle with a broken windshield and covered in debris, which appears to be from the same building.

Inspectional services were at the scene Thursday afternoon to check the integrity of the building, McCarthy said.

Flynn, 76, was mayor from 1984 to 1993. He resigned in 1993 to serve as U.S. Ambassador to the Vatican, a position that President Bill Clinton appointed him to.

He was in the news earlier this week, when it was announced that Mayor Martin J. Walsh had asked the Boston Redevelopment Authority to rename the Marine Industrial Park to honor Flynn.

“When I reflect on my life, going back 76 years, I could think of no better place to be named after than this cherished port,” Flynn wrote earlier this week. (A tweet from the Boston Redevelopment Authority on Thursday afternoon announced that the park will be renamed: “EDIC board approves renaming of Boston Marine Industrial Park to Raymond L. Flynn Marine Park in honor Mayor Ray Flynn,” @BostonRedevelop tweeted.)

The mayor’s office said in its statement Thursday that it would provide updates on the accident as they are available.