Violence broke here on Monday over alleged illegal slaughter of cattle, leaving a police inspector and a youth dead as a mob went on a rampage here torching a police post and clashed with police, which opened fire to control the situation, officials said.