A man who was shot and killed by police in Wilmington following a report of a man with a gun was identified Friday as transient with several recent arrests in Redondo Beach.

Eric Rivera, 20, who last showed an address in Lomita, was killed about 9 p.m. Wednesday in the confrontation with Los Angeles police officers in the 1100 block of North Wilmington Boulevard, authorities said.

Investigators said a toy gun was found at the scene.

Police officers encountered Rivera shortly after someone reported a man with a gun. According to a Los Angeles police statement, officers spotted a man in his mid-20s standing alone.

“Believing this may be the suspect from the radio call, they directed their attention toward him; at that time, there was an officer-involved shooting,” the statement said. “Several shots were fired and the suspect was struck and fell to the ground. The officers’ vehicle traveled forward, striking the male and pinning him underneath it.”

Paramedics pronounced Rivera dead at the scene. One officer, who at first was believed to be shot in the arm, was taken to a hospital for treatment. He was injured getting out of his car, but had not been shot.

Police said detectives interviewed witnesses who said that in the minutes leading up to the shooting, “they saw the male who officers shot, with a handgun. A toy gun was found at the scene and was recovered by detectives.”

The LAPD’s specialized Force Investigation Division is investigating the shooting. Representatives from the Office of the Inspector General and the Los Angeles County District Attorney’s Office also were on scene.

Los Angeles County Superior Court records show Rivera pleaded no contest April 24 at the Torrance courthouse to two counts of petty theft. He was sentenced to 120 days in county jail. It was unclear when he was released.

He was convicted June 7, 2016, in Torrance court of reckless driving. He received five days in jail and was placed on three years probation.

County jail records show Redondo Beach police arrested Rivera for misdemeanor crimes March 23, April 21, May 6 and May 17 as well as a felony on May 22. Lomita deputies arrested him on May 20, 2016.

Redondo Beach police officers recently became well-acquainted with him as a local transient. He was picked up for various crimes, including narcotics possession and being drunk in public, Redondo Beach police Lt. Fabian Saucedo said.

“He was just starting to come across our radar,” Saucedo said.

On May 18, Rivera allegedly walked into an empty pizza restaurant on the Redondo Beach pier, hopped the counter, opened the register and started taking money, Redondo Beach police Lt. Fabian Saucedo said.

Rivera ran when the owner spotted him. The owner chased Rivera, confronted him and fought with him, but Rivera slipped away. Police found evidence at the pizza restaurant linking Rivera to the crime and arrested him days later.