Ex-NATO chief says attack on Iran has 'no basis in international law'