Two Los Angeles County Sheriff's Department deputies were shot following an ambush at the Metro station in Compton, California.

The attack took place around 7 p.m. on Saturday at the Metro Blue Line station. Both officers were shot in the head and sustained multiple gunshot wounds to other areas on their bodies. 

Following the attack, the deputies were taken to a local hospital and underwent surgery. Officials have said both officers are “in critical condition,” KABC reported.

During a news conference at the hospital, Sheriff Alex Villanueva condemned the shooter and criticized the ambush.

“That was a cowardly act. The two deputies were doing their job, minding their own business, watching out for the safety of the people on the train,” he said.

“To see somebody just walk up and start shooting on them. It pisses me off. It dismays me at the same time. There’s no pretty way to say it.”

Villanueva stated that one of the officers who were injured in the shooting was a 24-year-old man, and the other was a 31-year-old mother. The two deputies were sworn into office 14 months ago.

In a surveillance video of the shooting, a man can be seen walking up to the parked patrol car and opening fire into the passenger side window. After letting off several rounds, the suspect takes off running. Watch the footage here. (Warning: Video may be disturbing.)

The Los Angeles Times reported Assemblyman Reggie Jones-Sawyer (D-South Los Angeles) assured the community that the shooter will be caught. “This was an unprovoked cowardly act. The individual will be caught, and justice will prevail,” he said.

“Tonight we must as a community condemn the act of the perpetrator. More importantly, we must come together and pray for the officers because they are heroes.”

At least 14 homicide detectives were on scene to investigate following the attack. Forensic specialists, K-9 units, and the FBI are also assisting with the case.

President Donald Trump called for the assailants to face the death penalty. He referred to them as "killers," but the two officers are still alive and in critical condition at press time. 

Police Officer Badge, Cops A Metro Police officer wears a ribbon over his badge at Metro headquarters as police mourn for two slain officers in Las Vegas on June 8, 2014. Photo: Reuters