Both Israel and Iran announced separately on Monday that their militaries would halt offensive operations against the other following an explosive exchange of fire overnight that threatened to restart hostilities in the region and upend U.S.-led peace efforts.