@MCX01 literally takes 5 seconds to write in your search engine the guy's name.
That aside https://en.wikipedia.org/wiki/Hijikata_Toshiz%C5%8D.
If you're too lazy to click the link tl;dr during his life, a military general took control of Japan, but there was a movement to make it so the emperor got the power back, Toshiz fought against that movement with his army (he was vice-commandant of a special police) and died by a bullet that shattered his back.
(I suggest you double check because i was skimming through)