UPDATE (11:55 a.m.) - Police say the suspect was taken into custody. Tear gas was used, but police say the suspect was not injured.
"We felt as an agency it was best to utilize non-flammable tear gas-type substance in order to get him to come out and that actually worked, that led him to surrender safely," said Sgt. Ethan Ragsdale, Santa Barbara Police Department.
He is being taken to a local hospital to be checked out before being booked into jail.
Police say the shelter-in-place order has been lifted and residents can now return home.
The 100 block of Oceano Avenue near Del Mar Avenue will remain closed to vehicles until around 1:15 p.m.
UPDATE (10:50 a.m.) - Police are still on scene in Santa Barbara working to get a wanted suspect out of his home.
Police say no evacuations have taken place, but they are asking people in the area to stay inside.
An arrest warrant has reportedly been issued for the man.
KSBY has a crew at the scene and will have updates as they become available.
ORIGINAL STORY: Residents along the 100 block of Oceano Avenue in Santa Barbara have been told to shelter in place due to police activity in the area.
Santa Barbara police say they responded to an apartment complex there shortly after midnight to reports of a disturbance in progress.
Officers say they made contact with the only person believed to be inside, who appeared to be under the influence of a controlled substance, police said Tuesday, and began breaking windows and barricaded themselves inside.
Police say the suspect is armed with a metal pipe and assaulted an officer.
"The subject grabbed a large piece of glass from the broken window which was about the size of a dinner plate, a large dinner plate and directly and purposely threw it at one of the officers," said Sgt. Ethan Ragsdale, Santa Barbara Police Department.
As of Tuesday morning, SWAT and a crisis negotiations response team were on scene in an attempt to deescalate the situation.
People in the area were told to shelter in place and authorities are working to evacuate people in the area surrounding the Sea Cliff Apartments.
Oceano Avenue at Del Mar Avenue and Del Sol Avenue is closed along with Barranca Avenue at Del Mar Avenue.
This is a developing story and will be updated as information becomes available.