Scotland’s First Minister John Swinney said a diplomatic route must be found to end the “nuclear ambitions of the Iranian regime”.