ROCHESTER — The commander of the New Hampshire Air National Guard was killed in a hit-and-run collision Monday night when he was struck by an SUV while trying to make sure his trailer was secured.