UPDATED: February 8, 2018 8:57 AM

RICHARDSON (CBSDFW.COM) – A Richardson police officer and a civilian were both shot and killed at an apartment complex in the city on Wednesday evening. The gunman, identified Thursday morning as Brandon McCall, barricaded himself inside a unit for nearly five hours.

brandon mccall Barricaded Gunman Shoots, Kills Richardson Police Officer & Civilian

The officer, whose name has not been released, went to the Breckinridge Point Apartments near Renner Road and North Star Road around 7 p.m. in response to a disturbance call. After being shot the 37-year-old officer was rushed to Medical City Plano but died from his injuries. It’s believed he was shot in the neck.

Police kept apartment residents inside their units as the standoff with McCall dragged on — with the man randomly firing shots throughout the evening. Ultimately McCall surrendered. Witnesses said he shouted “I’m sorry” as he was taken into custody.

Governor Greg Abbott sent his condolences to the Richardson Police Department on Twitter saying “Your loss is a loss to all law enforcement and everyone in our great state.  Texas will honor the lost officer with the dignity he deserves.”

Police departments across North Texas and the state also sent their support to the Richardson police force.

Around the same time the suspect was taken into custody police announced that the second person who was shot had died. Early Thursday morning that victim was identified as Rene Gamez. The 30-year-old reportedly lived in the apartment where the suspect held police at bay during the standoff.

The officer who lost his life is the first Richardson Police Department officer to be killed in the line of duty since the department was first organized in 1955. The flag at RPD headquarters has been lowered to half-staff.

The Guns & Hoses Foundation of North Texas has started a fund for the family of the fallen officer.

More From CBS Dallas / Fort Worth

Drip Pan: CBS Local App
Drip Pan: Weather App
Drip Pan: Only CBS

Watch & Listen LIVE