In this undated photo released by the Palm Springs Police Department shows slain officer Lesley Zerebny, 27, who was killed in the line of duty Saturday, Oct. 8, 2016. She was married with a four-month-old daughter. (Palm Springs Police Department via AP)

In this undated photo released by the Palm Springs Police Department shows slain officer Lesley Zerebny, 27, who was killed in the line of duty Saturday, Oct. 8, 2016. She was married with a four-month-old daughter. (Palm Springs Police Department via AP)

PALM SPRINGS, Calif. (AP) — Two Palm Springs police officers trying to resolve a family dispute were killed Saturday when a man they had been speaking with suddenly pulled out a gun and opened fire on them, the city’s police chief said.

A third officer was wounded and remained hospitalized. The shooter was not immediately identified.

SWAT officers quickly surrounded the house where the shooting took place, and authorities said late Saturday night that the gunman might still be holed up inside.

ADVERTISEMENT

“It was a simple family disturbance and he elected to open fire on a few of the guardians of the city,” said Chief Bryan Reyes at a news conference.

The chief, near tears, identified the slain officers as Jose “Gil” Gilbert Vega and Lesley Zerebny.

Zerebny, 27, had been with the department for about 18 months and only recently returned from maternity leave after giving birth to a now-4-month-old daughter. Vega, the father of eight, was a 35-year veteran who planned to retire in December. He had been working overtime on his day off Saturday. The wounded officer’s name was not released.

Reyes said the three were standing near the front door speaking with the man, “trying to negotiate with the suspect,” when he suddenly shot them.

Riverside County SWAT officers quickly sealed off the normally quiet residential neighborhood in this desert resort town as police evacuated some residents. They told others to stay inside their homes, keep their doors locked and not to open them for anyone until further notice.

Reyes also asked the media and others not to stream live video of officers’ movements on social media, adding it could put them in danger.

“Understand that we’re actively looking for a cop murderer,” he said.

A neighbor, Frances Serrano, told The Associated Press she called authorities after the father of the shooting suspect came to her house across the street and told her his son was “acting crazy.”

“He said his wife left because she was so scared of him,” Serrano said, adding the father warned her that his son had threatened to shoot police if they arrived.

She’d gone back inside her home before officers arrived, Serrano said, and a few minutes after they got there she heard gunfire. Moments later officers were knocking on her door, warning her to stay inside.

Serrano said the man police are looking for had been in jail at one time and had to wear a monitor on his ankle when he was first released. But she added that he had always been friendly and polite to her and her family.

“We never had any problems with him,” she said.

Although Reyes didn’t identify the shooting suspect, he indicated police had had previous dealings with him. He declined to elaborate, adding that Riverside County sheriff’s deputies were now in charge of the investigation.

ADVERTISEMENT

As the shooting scene remained locked down late into the evening, scores of police officers, several fighting back tears, gathered at Palm Springs Desert Regional Medical Center to offer a somber salute as the bodies of Zerebny and Vega were loaded into white hearses for transport to a coroner’s office.

Meanwhile, in front of police headquarters, scores of local residents gathered to leave flowers, balloons and cards Saturday night.

“I don’t even remember anything so vicious and cruel,” said Palm Springs resident Heidi Thompson. “These officers are responding to a domestic call for somebody in need that they don’t even know. They put their life on the line for us, the community. And they get gunned down? I don’t understand it.”

The shooting occurred just three days after a popular Los Angeles County sheriff’s sergeant was shot and killed in the high desert town of Lancaster.

Sgt. Steve Owen was answering a burglary call when sheriff’s officials say he was shot by a man who then stood over him and shot him four more times.

A paroled robber has been charged with murder.

Hundreds of residents held a candlelight vigil Saturday night in his honor.

___

John Rogers reported from Los Angeles. Associated Press Writer Olga R. Rodriguez in San Francisco also contributed to this story.