Iran FM says end of war must include guarantees against future attacks