The strike marked a dramatic shift in Iran's calculations following weeks of escalating Israeli attacks on the leaders of its proxy groups, Hamas and Hezbollah, and their forces in both Gaza and Leban