Massachusetts man accused of killing Army vet, stabbing hike