Self-generated magnetic field in an amplitude modulated laser filament in a plasma