The secretary of Iran’s National Security Council warned Israel on Tuesday of a firm and “deterrent” response if it continued attacking targets in Syria.