Authorities have charged a New Hampshire resident in connection with a shooting that occurred at the state’s border with Canada