Then it's certainly not a Good action. Killing them just because of what the alignment says, and not for any reason that justified lethal violence is an Evil action. And even if the victim has an Evil alignment, the fact that a supposedly Good being has tainted itself by performing Evil means that as far as the sides are concerned, Evil has gained a point.