Protests turn violent at Pakistan mosque