I teach just war theory every year. Self-defense is only one of the criteria.
The most important one is proportionality - if a greater evil is done by inaction, then war is a moral necessity. Rwanda, for instance.
But there is no way to justify what is happening now. At the very least, it fails the “last resort” requirement.
The pope, as it turns out, is right.