Man arrested in connection with N.H. homicide