Announcement signals counterterrorism cooperation between the two countries at a time of tensions over Erdogan's threat to launch an offensive against the Syrian Kurds