It happened on White Plains Road in the Wakefield section at 12:43 a.m. on Saturday.
The two men were seen walking together on White Plains Road when the first man took out a gun and fired shots at the vehicle.
After the shooting, the two men took off running.
The bullets ricocheted off a parked car and entered a second-floor apartment. A 41-year-old man inside the apartment was not injured.
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: Emergency landing at LGA was 'misunderstanding,' passenger not charged
* More Bronx news
* Send us a news tip
* Download the abc7NY app for breaking news alerts
* Follow us on YouTube