Variation in dust properties in a dense filament of the Taurus molecular complex (L1506)