Dynamical Formation of a Small-Scale Filament