The broken window fallacy/parable has no notion of outside money being inserted into the system and is a poor characterization of the F35 program/deficit fiscal spending.
That is the critical difference. Also these forms of spending are already empirically proven as being net beneficial due to a financial multiplier/accelerator.
The most efficient way of redistribution would be to use the money spent on the F-35 to directly fund social programs and jobs programs for the poor in these economically disadvantaged communities; this would redistribute all of the money to people who actually need it and will spend it, rather than send huge chunks of it into defense executives/shareholders’ pockets in the currently lossy transactions used in defense contracting.
[1] https://en.m.wikipedia.org/wiki/Parable_of_the_broken_window