An armed suspect died Thursday after trading gunfire with authorities and barricading himself for hours inside a San Gabriel home that he set on fire, authorities said.

Update: Earlier shooting reported at San Gabriel barricade site

It was not immediately clear whether the man died by turning a gun on himself, or if bullets from a deputy firing at the suspect killed him, said Los Angeles County Sheriff’s Lt. Rodney Moore who was on his way into the crime scene to examine the body.

The suspect’s family members contacted San Gabriel police at about 12:38 p.m. regarding a family disturbance in the 2000 block of Brighton Street, Moore said. He fired at least one shot at officers, who returned fire. Nobody was struck at that time.

Police contacted the Sheriff’s Department to request the aid of a SWAT team and crisis negotiators while evacuating nearby residents. Meanwhile, the suspect fled back into the home, and allegedly fired at least once at officers who were in the process of blocking off the crime scene.

Several popping noises were heard in the area before black smoke and fire was seen pouring from the residence at about 5 p.m. Authorities believe the suspect started the fire, but weren’t certain how Thursday evening.

San Gabriel Valley firefighters arrived a short time later to douse the flames.

At some point, the suspect fled through a back door of the home and entered a secondary structure on the same lot, Moore said. He was later seen in the backyard of the property holding what appeared to be two handguns and setting off fireworks in aerial footage broadcast by multiple local television stations. He briefly took shelter in the cab of a truck in the yard, then returned to the structure.

Negotiators tried to persuade the man to turn himself in, and deputies used tear gas in hopes of driving him out, but he refused to surrender, Moore said. The suspect was later seen through the rear door of the structure holding a shotgun, at which point a deputy fired four or five shots at the suspect.

The man was struck in the upper torso and pronounced dead at the scene, Moore said. It wasn’t clear Thursday evening if the wound was self inflicted, or left by deputy’s bullet.

Police closed off surrounding streets as a chaotic scene unfolded. The westbound 10 Freeway was also shut down from San Gabriel Boulevard to Del Mar Avenue. It was partially reopened, but two westbound lanes remained closed as of 7:41 p.m., a CHP dispatcher said.

Bombs squad and hazmat left the area at about 8:30 p.m., replaced by several cars with darkly tinted windows, likely occupied by homicide detectives, said a deputy at the scene.

Motorists approaching the crime scene on Strathmore Avenue were instructed to turn around. Local residents standing outside of the containment area unable to get in for hours, and anyone who left was not allowed back. At about 9 p.m., people were instructed to line up and allowed to go home.

SCNG photographer Watchara Phomicinda contributed to this report