Officials in San Francisco have designated the National Rifle Association as a domestic terrorist organization.