Five police personnel, 30 protesters injured; right-wing groups were protesting against a mosque