But Hamas claimed credit for the attack and openly celebrated it.