UPLAND - After a 10-hour standoff, a man wanted in connection with an El Monte homicide was taken into custody Thursday night, Los Angeles County sheriff's deputies said.

Sheriff's officials had been stationed outside an apartment complex in the 1400 block of West Seventh Street in Upland since 9:30 a.m. when homicide detectives attempted to serve an arrest warrant, said Nicole Nishida, spokeswoman for the L.A. County Sheriff's Department.

The man was taken into custody about 7:30 p.m. His identity was not released.

On Oct. 28, authorities say, the barricaded man and another person attacked and stabbed 34-year-old Miguel Duarte in the 11000 block of Dodson Street in El Monte after a disagreement. Duarte died two days later, Nishida said.

It wasn't immediately clear if the second attacker had been apprehended.

Thirty apartment units were evacuated Thursday, said Nishida. Dozens of tenants stood outside the complex and watched the scene unfold.

A SWAT team, a K-9 unit and Upland police assisted L.A. County sheriff's homicide investigators at the scene, Nishida said.