A Brockton, MA, officer was shot four times and two men are dead following an hours-long standoff Thursday evening.

Officers were called to a home for a report of gunshots fired around 5:45 p.m. While police were investigating, another man was found dead from gunshot wounds inside a silver SUV parked near the home. Then, a Brockton Police officer was shot four times, including in his ballistic vest. He was rushed to Boston Medical Center where he spent the night and is expected to make a full recovery. His name has not been released. He left the hospital, Boston 25 reports.

The suspect then barricaded himself inside the home for several hours. A SWAT Team was called in and police negotiated with him. He eventually came outside around 9:30 p.m. and then shot himself, according to Plymouth County District Attorney Tim Cruz. The unidentified man was rushed to the hospital where he died, CBS Boston reports.

No information has been released yet about the man found dead in the car outside the home. Police do not believe it was a random shooting.