President Joe Biden said the United States "stands with Israel" following the surprise attacks by Palestinian militants.