ANKARA, Turkey — Turkish authorities are investigating people who allegedly insulted state officials or incited riots on social media, the deputy prime minister said Thursday, in a sign the government is intent on meting out punishment over the massive protests that swept the country in June.