Iran has warned it will withdraw from a ceasefire reached with the United States if Israeli strikes on Lebanon continue.