The Israeli military has warned that Iran will "pay a heavy price" if further escalation ensues.