Police Chief Paul J. Shastany and Mayor Joseph Sullivan announced at a press conference early Saturday morning that the suspect was found dead after law enforcement entered the room.

The officer was shot in the face and taken to Boston Medical Center, where he underwent surgery. He is expected to survive, Shastany said.

“The officer is in good condition,” Shastany said, speaking outside police headquarters late Friday night.

Police officers went to the Motel 6 on Union Street to check the warrant status of a man staying there, Shastany said. “This individual was in a room. He opened fire, striking one of my officers in the face,” Shastany said.

The extent of the officer’s injuries was not specified. “He is going to be healthy,” Shastany said.

A heavy police presence, including a regional SWAT team, responded to the motel off Route 3 shortly after 9 p.m. Patrons of the motel were evacuated by law enforcement.

The MBTA halted service to the nearby Braintree Red Line Station.

“The suspect remains barricaded,” the Bureau of Alcohol, Tobacco Firearms and Explosives reported on Twitter. Early Saturday morning, Braintree police said they expected to clear the scene but did not indicate whether a suspect was arrested.

A fleet of Quincy, Braintree, Transit, and State Police vehicles had descended on the motel after reports of an officer shot.

David Procopio, a spokesman for the State Police, confirmed that troopers responded to a report of a police officer shot and that a suspect was “barricaded in a motel room.”

State Police investigators assigned to the Norfolk district attorney’s office were assisting Braintree police at the scene.

Sullivan and Shastany planned to visit the officer at the hospital late Friday night.

“I know him very well,” Sullivan said of the officer.

“He found himself in very difficult circumstances. We’re going to thank him for his service. It is much appreciated.”

Original Story