It’s horrible, but, what do people think happens in war?
There are pretty harsh rules against killing unarmed POW’s. They actually get enforced when it’s possible (not often enough) to positively identify the perps and catch them. It’s usually some years later, of course.