I mean, come on, we kidnapped him. Yes, he was arrested, but we went into another sovereign nation with special forces and yoinked their head of state back to Brooklyn.
To be fair he isn't legitimate head of state- he lost an election and is officially recognized as a usurper and the US had support of those who actually won.
He is not a legitimate head of state. He lost the election.
And also killed over hundred people don't forget that.