That's not what's happening here. There's as much proof as you can have without reading the mind of Erdogan. He had entire press conference where he referenced the attacks as justification for regulating social media.
"We experienced similar attacks in the past. The lack of monitoring on these platforms have a role in the rise of this sort of immoral behaviour. These platforms do not suit this country. We want these platforms to be banned, taken under control."
This also comes after arresting and detaining several social media users for tweeting the insults.