The FDNY lieutenant shot Friday by a gang leader in Staten Island was discharged from the hospital Saturday afternoon to applause from fellow firefighters.

Lt. Jim Hayes, 53, was shot in the left leg and buttocks by Garland Tyree, 38, after firefighters were sent to Tyree's apartment.

Tyree, who later died in a gunfight with police after a six-hour standoff, had set off a smoke bomb inside the building after authorities had arrived to arrest him for a parole violation.

StoryOfficials: Man killed in gunfight wrote 'Today I die'See alsoWatch the video report

NYPD spokesman Det. Michael DeBonis said Saturday that Tyree was going to be sent back to prison on a weapons charge.

Tyree, a high-ranking member of the Bloods street gang, had an AK-47 assault rifle, three handguns and more than 100 rounds of ammunition in the apartment during the standoff, police said.

Despite promising his mother and the NYPD's chief hostage negotiator that he was giving up, Tyree opened fire with the assault rifle as he emerged from the apartment.

advertisement | advertise on newsday

The confrontation began around dawn, after federal and NYPD officers tried to make the arrest. When they noticed the smoke they called the fire department.

Hayes, one of the responding firefighters, tried to rescue Tyree but was shot by the gang leader, police said.

Hayes was released about 3:30 p.m. Saturday from Richmond University Medical Center, said Karen Hinton, a spokeswoman for New York City Mayor Bill de Blasio.

Get the Newsday Now newsletter!

The best of Newsday every day in your inbox.

"He's going home," Jim Long, an FDNY spokesman, said of Hayes. "He's got to heal and get better. Now's the time to be with his family."

De Blasio, who visited Hayes at the hospital, said Friday he was "cool, calm, collected" and "making light of his injuries."