Regardless, if the perp offed himself, he did it because he was engaged with thte SRO and did not want to be taken. Most shooters in these situation kill until confronted, or they run out of easy targets. Then they suicide.
By confronting the perp, whether he hit him or not, the SRO saved lives. Period.
No argument from me. I think the resource officer is a hero.