Dynamical Evolution of an Active-region Filament Driven by Magnetic Reconnection