One should not be surprized by Erdogan's rhetoric.  This despotic megalomaniac will go to any length to twist the truth with every possible conspiracy theory.  Have you heard the one that suggests Erdogan orchestrated the whole thing (as he did the failed coup last July) in order to further crack down on any opposition and to strengthen ties with Russia?  By painting Turkey and Russia as facing common enemies, it would increase the Russian resolve to fight the Kurds who are trying to establish a presence in northern Syria and ultimately aiming for an independent (and possibly pro western) country along the southern Turkish border.  It is not beyond the realm of possibility, is it?