Three suspects were arrested for attempted murder on Wednesday after a woman was shot multiple times at a gas station in California, as an infant sat in the back seat, police said.

The woman, described as a 20 to 30-year-old Black female, was taken to the hospital in critical condition with several gunshot wounds. The baby was unharmed. The Lancaster Sheriff's Station posted a picture showing Deputy Josef Schirmeister sitting next to the child at the gas station to comfort and distract him.

"Deputy Josef Schirmeister is part of the community in/out of uniform," said Los Angeles County Sheriff Alex Villanueva. "Thank you Josef for comforting this precious 1-year-old baby boy caught in the middle of a violent act that has left his mother in critical condition."

CALIFORNIA MAYOR SLAMS YOUTUBE STAR FOR THROWING WEEKEND PARTY: REPORT

The Lancaster Sheriff's Station posted a picture showing Deputy Josef Schirmeister sitting next to the child to comfort and distract him. (Lancaster Sheriff's Station)

Deputies responded to a Lancaster Mobil gas station around 1 a.m. on Wednesday to find a woman sitting in the driver's side of a vehicle suffering from gunshot wounds to the upper body. A preliminary investigation found that the woman was the victim of a robbery, police said.

Police told Fox 11's Bill Melugin that the victim arrived at the gas station with a female passenger who set her up.

BERKELEY, CALIF., MOVES TO STOP POLICE FROM CONDUCTING TRAFFIC STOPS, USE CIVILIAN CITY WORKERS INSTEAD

Upon arriving, the female passenger entered the store, when another vehicle with two men pulled up a short time later and tried to rob the victim before shooting her, according to Melugin. The female passenger then ran out of the store before getting into the other vehicle.

Police surveillance units eventually located the suspects, who were apprehended following a brief vehicle pursuit, the station reported.

The suspects were described as two Black males and one Black female, all in their 20s. Their names have yet to be released by authorities.

CLICK HERE TO GET THE FOX NEWS APP

They were arrested for attempted murder and evidence of the crime was seized during a following up investigation, police said. It's not clear if the victim was the baby's mother. The child has since been returned to his father, according to Melugin.