Turkish Prime Minister Recep Tayyip Erdogan says the country's military downed a Syrian warplane for crossing into Turkish airspace.