Iran says ready to end attacks if Israel stops assault