Armed police have killed a suspect, 25-year-old Redouane Lakdim, who shot dead three people in a series of attacks in southern France. The gunman said he was fighting on behalf of the Islamic State group.