NEW YORK (CBSNewYork) – An NYPD officer shot in the Bronx was released from Jacobi Medical Center Thursday morning.

As CBS2’s Natalie Duddridge reports, it was an emotional morning for 31-year-old Officer Daniel Vargas. His family and fellow officers lined the hospital doors and cheered as he left the hospital just two days after he was shot.

READ MORE: NYPD Officer Jason Rivera Fatally Shot, Officer Wilbert Mora Critically Injured Responding To Harlem Domestic Dispute

Vargas is still recovering from a bullet to his back. Police say the bullet struck him two inches below his bulletproof vest.

WEB EXTRA: Read The Complaint (.pdf)

According to police, Vargas and his partner stopped 24-year-old Ajani Jones near Lafayette Avenue near White Plains Road just before 10:30 p.m. Tuesday night. Within seconds, an officer fired one shot at the suspect, who fired at least four time, one bullet hitting Vargas.

“[He was] shot by a criminal carrying an illegal gun, and amazingly and thankfully, our officer is expected to make a full recovery,” Police Commissioner Dermot Shea said Wednesday.

READ MORE: 'The Loss Of A Hero': New York Mourns Death Of 22-Year-Old NYPD Officer Jason Rivera

“They’re out here risking their own lives for us to protect, and some idiot comes out and shoots him? That’s uncalled for,” Soundview resident Wanda Lugo said.

Jones was not hurt. He was remanded in court. He faces several charges, including attempted murder. He has a previous criminal record in New York City and New Jersey.

WATCH: NYPD Officer Daniel Vargas Released From Hospital

Vargas is part of the gun violence suppression division of the NYPD, which works to get guns off the street. He’s been on the force for almost seven years, and comes from a family of police officers.

MORE NEWS: Lashawn McNeil, Suspect In Deadly Harlem Police Shooting, Was On Probation, Had 5 Prior Arrests

More From CBS New York:

Natalie Duddridge