The off-duty officer heard the victims' screams and ran to their aid.
Police say shots were fired, and Rios was hit. Investigators have his gun but haven't determined whether it was fired.
Rios ran from the building but was caught a short distance away. The 47-year-old died soon after.
No telephone number could be found for Rios' upper Manhattan apartment.