Retired military and national security leaders have been stepping up work to prepare local officials for possible worst-case scenarios like armed immigration officers or military at the polls.