Algeria thwarts armed attack plot that had Israeli support