NYPD: Officer fatally shoots teen who fired gun at fleeing person