Just war is "a very complex problem. You have to analyze it on many levels," Pope Leo XIV said.