A manhunt is in effect after two Palm Springs, Calif., police officers trying to resolve a family dispute were shot to death Saturday, Oct. 8, 2016, when a man they had been speaking calmly with suddenly pulled out a gun and opened fire on them, the city's police chief told reporters. A third officer was wounded. The shooter was not immediately apprehended.(Omar Ornelas/The Desert Sun via AP)

PALM SPRINGS, Calif. (AP) — Police have apprehended the man who fatally shot two officers and wounded another in Palm Springs, California, authorities announced Sunday.

The Riverside County Sheriff’s Department said on Twitter early Sunday morning that the “suspect has been taken into custody.” No further information was immediately available.

Two 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, Palm Springs police Chief Bryan Reyes said at a news conference. A third officer was wounded and remained hospitalized.

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)

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.

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.

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.

As the lockdown continued, scores of police officers 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.

In this photo released by the Palm Springs Police Department shows slain officer Jose “Gil” Gilbert Vega, a 35 year veteran who was killed in the line of duty Saturday, Oct. 8, 2016. Vega, the father of eight, planned to retire in December. (Palm Springs Police Department via AP)

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.