The Los Angeles County Sheriff's Department says there is no indication that the suspect in custody was linked to the shooting of two deputies in Compton Saturday.
The suspect in custody was identified as Deonte Murray, 36, who has no known address but frequents the Lynwood area.
"At this time there is no information that would lead us to believe that he is involved in the shooting of our deputies," LASD Sgt. Bob Boese said.
The arrest came after a massive response to the 3100 block of Carlin Avenue and evacuation of the area.
The Special Enforcement Bureau was on scene along with the bomb squad and sheriff's helicopters flying overhead.
Officials say Murray was involved in a carjacking in Compton on Sept. 1, in which a 51-year-old man was shot in the leg with a high-powered rifle.
Gang investigators had identified Murray as the suspect, obtained an arrest warrant and then spotted him in a Toyota on Tuesday.
A short chase ensued and he ran out of the car and into a nearby building on Carlin. Deputies deployed gas, a robot and a drone in their search of the building.
They eventually found him with help from a K-9 unit hiding in a trash bin behind the building. He was bit by the K-9 and transported to a local hospital.
The huge response to the neighborhood they said was the result of the likelihood that the suspect was armed with the same high-powered rifle.