Supersolid behavior of a dipolar Bose-Einstein condensate confined in a tube