SAN JOSE (CBS SF) — An armed suspect who had barricaded himself inside an RV in San Jose surrendered to police Tuesday afternoon, according to authorities.

San Jose police said the incident was unfolding on the 2000 block of S. 7th St. south of Phelan Ave. and west of Monterey Highway.

READ MORE: Film Fans Tell New Castro Theatre Managers To Keep It Reel

A male suspect brandished what is believed to be either a rifle or a type of shoulder-fired weapon at several people near the UPS customer center, police said.

“At this point in time, we’re still not certain what kind of weapon it was. Based on information, we can tell you it appeared to be a long gun, something that can be brought up to the shoulder and fired,” said San Jose police spokesman Officer Steven Aponte.

Tactical negotiators were at the scene attempting to speak to the suspect and UPS employees have sheltered in place.

READ MORE: Health Experts, Parents, Teachers Call for Lifting Mask Mandates Post-Omicron

Police have closed S. 7th St in both directions and urged people to avoid the area.

Over the course of the day, police negotiators remained in contact with the suspect, trying to work towards a peaceful surrender.

After utilizing flashbang grenades and smoke, police said the suspect surrendered and was in custody as of around 3:30 p.m..

MORE NEWS: UPDATE: Crews Make Progress in Big Sur Firefight; Containment at 35 Percent

Police said the suspect will be booked into jail for brandishing a weapon as well as outstanding warrants.