Here, in a nutshell, is why using AI for military purposes is worse than dangerous:

If you ask it for a plan to attack something, it will never respond "that's bad idea, don't do it."

@petergleick
Back during the late 80's AI fad, I remember reading somewhere that the real test of intelligence is the ability to display good judgment. Even truer now, in my book.