Just because you legally killed someone doesn't mean it's not murder. Did Hitler murder lots of Jews? Did Stalin murder enemies of the people? Did Anglo-settlers in the USA murder countless slaves and native peoples?
The question of whether a set of laws is legitimate is another question.