COMPTON (CBSLA)  —    A SWAT team responded to a Compton neighborhood after an unknown suspect fired on LA County Sheriff’s deputies, officials said.

The suspect was hit by returned gunfire. He was taken to a hospital in an unknown condition.

READ MORE: Davis' 28 Lead Kings To 2nd Straight Win Over Clippers

Deputies reportedly came under fire about 2:40 p.m. near Aranbe Avenue and Lucien Street.

The public was asked to avoid the area.

“The scene is active and a containment of the immediate surrounding area has been initiated,” Deputy Juanita Navarro-Suarez said about 3:40 p.m.

READ MORE: Family Of 18-Year-Old Garret Hayward, Killed By Suspected DUI Driver, Hold Emotional Vigil

About an hour later, the suspect was spotted outside a home he was allegedly holed up in. The suspect was reportedly holding an assault rifle.

He placed it on the side of a wall outside the residence When he appeared to go back to retrieve it, officers shot him.

Late Thursday, officials described the suspect as a 20-year-old Latino. They said he was taken to the hospital where he is listed in critical condition.

The assault weapon was recovered at the scene.

MORE NEWS: In Wake Of Recent Crime Uptick, Beverly Hills Hires More Officers And Increases Patrols

(@Copyright 2017. The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)