It happened early Sunday morning in the courtyard of a building on 91st Street and 35th Avenue in Jackson Heights.
Police say the suspect fired two rounds.
One hit the exterior of the building, but the other went through the window of a third-floor apartment and became lodged in the ceiling.
A 20-year-old man, a 23-year-old woman, and a 25-year-old woman were inside the apartment at the time of the shooting. Fortunately, there were no injuries.
Anyone with information in regard to this incident is asked to call the NYPD's Crime Stoppers Hotline at 1-800-577-TIPS (8477) or for Spanish, 1-888-57-PISTA (74782).
MORE NEWS: Police officers rescue children from burning home in Rockland County
* More Queens news
* Send us a news tip
* Download the abc7NY app for breaking news alerts
* Follow us on YouTube