SAN DIEGO — Shots were fired at the site of a fatal crash on a San Diego freeway ramp early Sunday morning, authorities said.

The crash happened shortly after midnight on the ramp from northbound Interstate 805 to state Route 94, according to California Highway Patrol logs.

Video from OnScene TV showed a large pickup truck appeared to hit a guardrail and then a concrete overpass support, ending up back in the lanes of the ramp. The impact crushed the truck’s cab and trapped the driver inside.

Firefighters worked for an extended period to cut away wreckage and reach the person, who was then pronounced dead at the scene, according to CHP. It wasn’t initially clear what caused the driver to lose control, but the truck was the only vehicle involved. The driver was not publicly identified.

During the deadly crash investigation, officers observed and heard several gunshots fired from a white pickup truck at the Market Street and I-805 intersection, CHP said. It is unknown whether the shooter was aiming at the officers at the crash scene.

No one involved in the crash investigation was hit and officers did not immediately find evidence of other gunshot victims.

Officers found at least one shell casing on the ground by the exit, video showed.