Turkish Prime Minister Tayyip Erdogan has accused Israel of committing ethnic cleansing of Palestinians in Gaza.