Similar but an extension of Killing Civilians in a defensive war
On September 11, 2001, there was a military pilot in an unarmed military jet who considered flying into one of the hijacked planes in order to prevent it from hitting anything and killing any additonal people
While she would have been removing the imminent and clear mortal threat, she also would be inevitably killing the civilians on the plane, plus herself. These civilians can not be considered guilty co-conspirators (as some of the answers to the related question characterize civilians in war time).
Would her actions have been considered a sanctioned act of rising up to kill a rodef (does it make a difference that she was not in danger, but others were?) or did she not have the right to take other lives (possibly as related to Sanhedrin 74a: "It happened with Rava: A man came to Rava and told him that the governor of the city had ordered that he (the man) slay a certain man or himself suffer death, and Rava said to him: 'Rather than slay another person, you must permit yourself to be slain, for how do you know that your blood is redder than his, perhaps his blood is redder than yours?'")