Man discards handgun prior to arrest