Hamas’s attack also caught the Biden administration by surprise