NEW YORK (CBSNewYork/AP) — A man was shot outside a restaurant on the Upper East Side following a confrontation at a celebration party for rapper Tekashi69.

Police say the rapper, born Daniel Hernandez, was celebrating a ruling from an earlier court case inside Philippe Chow near the corner of 60th Street and Madison Avenue Friday afternoon.

A group of men tried to enter the restaurant during the celebration and were turned away, according to police. The group then returned shortly before 6 p.m. and struck a private security guard over the head with a chair.

The security guard, who police say is a licensed gun owner, then shot the man who swung the chair, striking him in the torso.

Police say the victim ran down the street and attempted to get into a cab, but was turned away. Medics responded and rushed the victim to NewYork-Presbyterian Weill Cornell Medical Center in serious but stable condition.

Tekashi69 was no longer at the restaurant at the time of the shooting, according to police. He was in court earlier Friday and was granted probation instead of jail time in connection with a video he made of a 13-year-old girl having sex.

The shooting victim is expected to make a full recovery. It wasn’t immediately known if anyone would face any charges in connection to the melee.

(© Copyright 2018 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)