Suppose a soldier is hired to kill someone, which is a crime, and maybe the target is some important political person.
Now what do we call him? Assassin / Hitman / Mercenary?
assassin: someone who kills a specific important person, often for political reasons
hitman: someone paid to kill a person, usually tied to crime
mercenary: a soldier who fights for money for whoever hires them