A senior Ukrainian military officer with deep ties to the country’s intelligence services played a central role in the bombing of the Nord Stream natural gas pipelines last year, according to officials in Ukraine and elsewhere in Europe, as well as other people knowledgeable about the details of the covert operation.