Police say they opened fire on the suspects, who have extensive criminal records, as their actions threatened the officers’ safety.