Turkish President Recep Tayyip Erdogan accused Israel of behaving like a "war criminal" in its bombing of Gaza.