Turkey hopes to exploit recent setbacks for Iran but an armed attack near Ankara has thrown a question mark over his plans