Three persons were killed in the violence that erupted during the survey of a mosque in Sambhal district in Uttar Pradesh, officials said.