Seems to be particularly likely to happen in panicky situations, or when someone has something to prove. E.g., the Soviet-American tensions surrounding an American spy plane, a RC-135, were a factor in the Soviets shooting down KAL-007 (they thought it was the RC-135) [1].
[0] https://en.wikipedia.org/wiki/List_of_airliner_shootdown_inc...
[1] https://en.wikipedia.org/wiki/Korean_Air_Lines_Flight_007