A judge rejected a claim brought by the parents of a man who was fatally shot by a Long Beach officer after the man ran from police following a traffic stop and brandished a handgun, the city attorney said in a statement released Monday.

Martin Hurtado, 21, was killed on March 10, 2016. His family filed suit in federal court alleging the city and officers were liable for Hurtado’s death because the force used was excessive and unreasonable.

An attorney representing Hurtado’s family, Dale Galipo, was not immediately available for comment.

City Attorney Charles Parkin said in a written statement that the situation is sad, but the result is good for the city of Long Beach.

“Our police officers reacted to a life-threatening situation and the court found they acted reasonably,” Parkin said.

The officers pulled over the car Hurtado was in riding in for having no license plates. Both Hurtado and the driver fled the car on foot.

Police noticed that Hurtado had a gun in his right hand, the city attorney said, and the officers gave multiple commands for him to drop the weapon.

“As the pursuit continued, Hurtado turned toward the officers and raised his weapon,” the statement said. “One officer fired at Hurtado, killing him.”

The court ultimately agreed that the officers were justified in shooting Hurtado to protect the public and themselves.

District Court Judge S. James Otero dismissed the case entirely.

Melissa Evans is the Chief Executive Officer of the Long Beach Post and Long Beach Business Journal. Reach her at [email protected], @melissaevansLBP or 562-512-6354.