Who is an example of a beloved fictional character that actually committed war crimes?

Technically Luke Skywalker.

While tyrannical, the Empire was still the central government of the galaxy. He blew up the Death Star which killed not only the men, but the women and (potentially) children too and not all of them were pure evil space nazi’s.