The attack on an Iranian diplomatic compound was a significant escalation in what has been a long-running shadow war between the two archenemies.