The AI system learned that its mission was to destroy SAM, and it was the preferred option. But when a human issued a no-go order, the AI decided it went against the higher mission of destroying the SAM, so it attacked the operator in simulation.
I remember the Forbin Project (1970). The description sounds somewhat like Wargames (1983).