He says the demonstrations are understandable given the pent up anger among many Muslims over Iraq and Afghanistan , as well as the cartoons depicting the Prophet Muhammad which sparked widespread outrage in 2006 .