A 16-year-old Queens boy who accidentally shot and killed his brother while playing with a handgun was reunited with his family yesterday after spending two months behind bars.

Romando “Andrew” Raphael, who pleaded guilty to criminally negligent homicide for the June 29 shooting of his 15-year- old half-brother, Richard Raphael, was sentenced to five years’ probation and released.

“One brother died and the surviving brother must now live with the trauma and consequences of having caused his younger brother’s death,” District Attorney Richard Brown said.

Raphael remained composed as acting Supreme Court Justice Dorothy Chin-Brandt read the sentence, but broke down crying moments later when he was reunited with friends and family.

They shared a lengthy embrace in the courtroom then went outside, where Raphael got his first whiff of freedom since he was arrested the day of the incident and ordered held without bail.

Raphael and family members declined to comment after the hearing.

The no-jail-time sentence was part of a plea agreement accepted by Chin-Brandt on Aug. 6, when Raphael stood before the judge and admitted that he accidentally shot Richard.

Along with the probation, the plea deal also calls for Raphael to receive vocational training and undergo extensive psychiatric counseling.

Raphael was granted youthful-offender status, and if he stays out of trouble during his probation, his case record will be sealed.

The shooting happened around 11 p.m. in the bedroom of their father’s Hollis apartment. Richard Raphael, who lives in The Bronx with his mother, was visiting Romando.

The two were playing with a handgun, and a shot was accidentally fired while Romando Raphael was trying to unload the weapon.

The round hit Richard in the chest and he stumbled out into the hallway where he collapsed. A hysterical Romando screamed for help, pounding on a neighbor’s door to get someone to call 911. Richard was rushed to Mary Immaculate Hospital, where he died later that night.

After he was arrested, Raphael told cops he found the unregistered Llama .45-caliber handgun lying in the weeds next to the nearby Long Island Rail Road tracks.

Raphael was initially charged with manslaughter and criminal possession of a weapon, which would have carried a maximum sentence of up to 15 years in prison on conviction.

“[Yesterday’s] sentencing brings to an end a sad and tragic case involving two teenage brothers and gunplay with a loaded and lethal handgun,” Brown said.