Even as the vast majority of Muslims condemn terrorism, the frequency and cruelty of the assaults have led many people to ask sharp questions about Islam.