Russia has told Israel it will take all necessary measures to protect its military personnel in Syria, the foreign ministry in Moscow said.