Friendly-fire even happens by human beings using small arms, just like strikes on civilian schools and hospitals happen because the intelligence told a human being that it looked like it could be a "terrorist training ground".
I'd be interested to see what the failure rate of an AI looked like in what actions it would have taken based on available data versus what actions human took over a several year sample. I have a feeling that the AI will either look terrible, or the human beings will look terrible, or they'll look pretty equal with strange fringe cases where the AI is better than the human, and vice versa. Judgement and authorization are interesting.
Something else you might be interested in (which you may already know about) is PAL systems for nuclear weapons: https://en.wikipedia.org/wiki/Permissive_action_link
You'll likely be interested in the "two-man rule": https://en.wikipedia.org/wiki/Two-man_rule
Whilst AI may indeed be superior to human beings in x areas now or in the future, human ethics, intuition et al are also very important and likely to never be replaced. In the same breath, fuckups will always happen by the very nature of every system and every human being imperfect.
As far as existing heat-seekers, I would assume that they are generally used in cases where the only target which will likely be locked on to is the desired target. However, this is coming from a place of total ignorance of what the process of target acquisition might look like and what conditions they are used in.