Witnesses saw 31-year-old Michael Woodbury of Windham walking along some railroad tracks.
He fit the description of the gunman in a multiple shooting at a store in Conway, New Hampshire, so they called police, and Woodbury was quickly taken into custody.
34-year-old James Walker of Denmark, Maine was one of three men killed in the shooting. Walker was the manager of the Conway store.
It appears that the victims were shot during a robbery.