Discuss as:

30 blocks locked down as cops hunt gunman who shot LA sheriff's deputy

View more videos at: http://nbclosangeles.com.

Police were searching for the gunman who shot a sheriff's deputy in a community south of Los Angeles Friday night, according to LA County Sheriff's officials.

The deputy, who was on duty with the gang enforcement team of LASD Operation Safe Streets Bureau, was shot about 9:30 p.m. (12:30 a.m. ET) in the 1600 block of 87th Street in the unincorporated Florence area.

Three to five people were being sought in connection with the shooting, police said.

Helicopter footage showed a huge police presence locking down 30 blocks, where the search was taking place.

Residents in the area were being told to stay in their homes with their doors and windows locked. Police have asked anyone in the area who sees people acting suspiciously to call 911.

Read more news on NBCLosAngeles.com

The deputy, who has not been named, was transported to a hospital where he underwent surgery and is listed in stable condition. Witnesses said he appeared to be conscious and moving.

LA County Sheriff Lee Baca was escorted by law enforcement officials to the hospital Friday night.