The head of Israel's domestic intelligence service has said he will resign in June – defusing an escalating row with Benjamin Netanyahu.