Why is Turkey’s purchase of Russian weapons controversial?

US threatens Turkey with sanctions for buying the Russian S-400 anti-missile system.