Erdogan slams 'bloodthirsty' terror groups