If it is immoral/illegal for an individual to commit murder then it is only logically consistent for it to be immoral/illegal for a group of individuals to commit murder (sentence another person to death that has not transgressed directly against them). Groups of individuals do not possess magical powers that provide them with special moral privileges that individuals don't possess.