Man nabbed with gun after leading police on chase