Three people were killed as protesters opposing a court-ordered survey of a Mughal-era mosque in Sambhal, Uttar Pradesh, clashed with security personnel on Sunday.