Erdogan held separate phone conversations with Palestinian President and Hamas leader