Syrian President Bashar al-Assad has warned Turkey it will "pay dearly" for supporting militants fighting to overthrow his government.