I avoid the word “moral” in favour of the word “ethical”. “Moral” has become such loaded language.
I think (and am happy to stand corrected) that ethics says that this outcome is good so the action was good whereas morality says that an action is good if it complies with the moral code regardless of whether the outcome is good or not. For example: fundamentalist Muslims believe that the 9/11 terrorist attacks were morally good because it was the will of Allah for non-Muslims to die. A bad action for morally good reasons. Moderate Muslims disagree because of the suffering that occurred but don’t want to criticise their fellow Muslims so they give them cover (another bad action compliant with moral codes so seen as good).
Ethically speaking, the bad outcome is the only thing that matters so the attack has no redeeming features.