A gunman killed 38 people, mainly tourists, before he was shot dead by police. Tunisians have denounced the attack, with hundreds of people marching to condemn extremism.