Obama hails Israel and vows to keep its security