A 30-year-old man who fled after firing a gun inside a Jamaica bar was shot and killed by police after he turned and opened fire on NYPD officers Wednesday night.

The NYPD has not released the man's name, pending notification of family. Police said the suspect's gun, a loaded 9-millimeter Glock, was recovered.

The fatal shooting occurred on 168th Place near Hillside Avenue in Jamaica after 9:15 p.m., police said. Police said the man refused orders by pursuing officers to stop, "turned and fired upon the officers" near 168th Street and Highland Avenue, then ran again -- before stopping near Hillside Avenue, turning and pointing his weapon at the officers a second time.

The two uniformed officers fired a total of five shots, police said, striking the suspect in the torso. The suspect was taken to Jamaica Hospital Medical Center, where he was pronounced dead.

Police said officers had responded to a 911 call of shots fired inside the Hillside Inn, a bar near 168th Street and Hillside, at 9:17 p.m. The responding officers determined the suspect had fired shots in the bar, then fled. The officers located the suspect near Highland Avenue, where police said officers screamed: "Police! Don't move!" But, police said, the suspect continued to 168th Place and Highland, where he turned and fired at the officers.

The suspect was later shot when he turned a second time, pointing his weapon at officers who then fired five times, the NYPD said.