Man shot after threatening officers with pellet gun