Both officers were hospitalized in critical condition