A plan to relocate a sheriff’s office stirs up governmental rivalries