Can be the case but how I find some strange patterns of weird yet disrespectful acts as such specially at religious places, seems like an cult offering. We can't ignore that Turkey is at receiving end of many of such groups or anti Islamic forces. It's most probably intended to invite hatred and violence or even some extreme reaction.
Personally, my wishes and all support for Turkey that may survive such tide similar to how Pakistan been targeted for many evil designs. Stand tall and be strong brothers. I am hopeful that he would have dealt accordingly though, we are missing update in this regard. These cases exist.
On a side note: Saw almost same incident in one of the Masjids in Karachi Gulshan e Hadeed area but that guy firstly injured himself by breaking windows , walked naked in Masjid while bleeding but still people apprehended him to Police after couple of slaps but no more. Sometimes, these people seems to be under heavy influence of paranormal forces/jins/Satan as well.