If your actions as HoS incited the entire station into rebelling against you within seconds and the only options you can see are immediate murder and then barricading yourself in sec and threatening more murder, it should go without saying that you are not playing HoS well.
There's no denying that played it very robustly, but most people can see why it's grossly inappropriate to wordlessly burst into your boss's office while he's servicing customers, tase him, cuff him, and then drag him to the crematorium while fleeing an enraged mob and murdering him, and then posting up in sec and threatening to execute anybody who objected to it. I did not spread any rumours about you, I did not agitate against you, this was early in the round and as far as anybody knew we had a good HoP and a good HoS that were doing their jobs normally. There was no reason for them to be on my side beforehand. If you can't see why everyone turned on you so instantly and immediately then I believe there is an issue with your ability to play command and sec roles.
Keep in mind that while I was actually a traitor, and entirely valid, the only thing you knew at the time was that I gave AA to the clown, a shitter move so commonplace that it happens in 80% of rounds and almost never by antags, and also keep in mind that you had already broken into the captain's office, personally, to steal AA for yourself, which makes any logical leap to "must be traitor" even more unlikely.
Some more appropriate options to deal with this might have been to privately message other department heads to get their support in removing me as unfit for my position, with or without an arrest afterwards. Or gathering up a small squad of sec officers so you could burst into the office to explain that I'm under arrest, and have enough force and legitimacy that the station would understand 'HoP is bad and got caught like an idiot'. Even announcing my crimes over the radio beforehand would have done a lot to keep people on the sidelines, if not winning them over to your side. Instead you chose to solo-charge your boss like a psychopathic assassin and drag him off to a backroom be murdered in front of a horrified and confused station population.
There are many, many ways you could have handled this more appropriately as a security officer, some of which might have been less efficient and maybe even led to you losing or dying, but many of which would have gotten me killed or permabrigged easily, and not collapsed the station into anarchy and put you in serious risk of being lynched.