DUARTE (CBS) — A Department of Corrections officer shot a 20-year-old parolee who allegedly pulled a knife on an undercover agent Friday.

The officer-involved shooting was reported at 2:22 p.m. in the 1900 block of Huntington Drive in Duarte.

READ MORE: Police Look For Shooter In Redondo Beach Homicide

Samuel Castro was hospitalized in serious condition and was undergoing surgery Friday evening, according to Luis Patino of the California Department of Corrections and Rehabilitation.

Castro’s parole was suspended Wednesday when he did not report to his parole agent, Patino said.

READ MORE: Beverly Hills Adding Armed, Private Security After Robbery At Chic Restaurant

“Parole agents were attempting to arrest (Castro) …when he pulled a knife and threatened one of the agents,” Patino alleged. “The agent shot the parole violator.”

No agents or officers were injured in the shooting.

Castro served time at Corcoran State Prison for assault with a deadly weapon with great bodily injury, according to Patino.

MORE NEWS: Police Search For Driver Who Killed Bicyclist In North Hills

(©2012 CBS Local Media, a division of CBS Radio Inc. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. Wire services contributed to this report.)