Turkey has become a virulent critic of Israel's war in Gaza, sparked by Palestinian Islamist movement Hamas's October 7, 2023 attack.