President Recep Tayyip Erdogan of Turkey criticized a proposed American-trained force that could put thousands of Kurdish militia on the Turkish border.