Turkey and Russia both have political leaders who have created wars to boost their popularity. It has worked well for both of them so far.
Since the Turkish leads started their war against the Kurds and just used it to win an election in the last couple month, I'm not sure how they would benefit from starting new trouble with Russia. I think the Russian leaders would have the most to gain over this.
Of course it could be all an honest mistake.