Los Angeles police officials said an off-duty officer was in pursuit of Ramirez and a second suspect inside a Volkswagen Passat for driving erratically on the 105 Freeway.

During the chase, Ramirez jumped out at 223rd Street and Normandie Avenue and carjacked a Dodge Durango at gunpoint.

Police were able to pursue the Dodge that ultimately crashed in Long Beach. Ramirez then ran into a home near 33rd Street and Magnolia Avenue where he stabbed the patriarch of the household and shot two sons.

The suspect then barricaded himself inside the home as SWAT officers arrived and officials shut down several blocks in the neighborhood.

After officials heard gunshots from inside the home, they said Ramirez was found with what appeared to be a self-inflicted gunshot wound to the head.