The mob was said to be protesting a film produced in the United States that they believe denigrates the Prophet Muhammad.