A piece of crucial intelligence arrived just hours before the attack on a compound in central Tehran.