Erdogan, Obama hold talks on counterterrorism