A police officer in San Marcos, Texas, was shooting and killed Monday afternoon when he was serving a warrant, the city said.

The officer, who has not been identified, was serving a warrant in the El Camino Real subdivison of the city, the city of San Marcos said in a press release Monday.

The officer — who was wearing a protective vest — was with “other SMPD officers” when someone “shot him multiple times.” He was taken to the Central Texas Medical Center immediately and was subsequently pronouced dead at 3:50 p.m. local day, according to the press release.

The shooting happened near Bowie Elementary School, Fox 7 reported.

A suspect is in custody following a shootout with law enforcement. The suspect was shot during the incident and was transported to a hospital in Austin, police said.

Texas Gov. Gregg Abbott tweeted the news, and said: “We pray for the family of the San Marcos police officer killed in the line of duty. We recollect the sacrifices our men and women in law enforcement induce every day. #BackTheBlue. “