A Boston police officer shot while investigating the robbery of a pizza delivery driver has been released from the hospital while the man suspected of shooting him was held without bail Monday at his arraignment.

John Lazare, 23, of Brockton, pleaded not guilty to nine charges including assault and battery with a firearm in connection with the shooting Friday night in the city's Roxbury neighborhood.

BOSTON POLICE IDENTIFY SUSPECT ACCUSED OF SHOOTING RESPONDING POLICE OFFICER: ‘NO RESPECT FOR LIFE’

The officer, who was shot in the back and the foot, has been released from the hospital, police said. His name has not been made public.

Boston, Plymouth, Worcester crimes

A Boston police officer who was shot and injured by John Lazare, a suspect in the robbery of a pizza delivery driver, has been discharged from the hospital. Lazare is in custody.

Lazare is due back in court on June 23 for a hearing to determine whether he is a danger to society. His attorney objected to him being held.

WOMAN ACCUSED OF MURDERING BOSTON POLICE OFFICER BOYFRIEND BACK IN COURT, AS DEFENSE SUBPOENAS NEW WITNESSES

The officer was patrolling the area because a pizza delivery driver had been robbed last Wednesday, authorities said. The officer saw a suspect matching the description of Wednesday's suspect pointing a gun at a delivery driver on Friday, according to the police report.

When the officer approached, Lazare allegedly opened fire.

CLICK HERE TO GET THE FOX NEWS APP

Lazare fled but was arrested after injuring himself while jumping from a rooftop, police said. Two other officers were also hurt, but not by gunfire.