Even as gunfire sounded in Ukraine’s capital, natural gas kept flowing normally Friday through the major pipelines from Russia to Europe. But the invasion and accompanying sanctions are casting a shadow over longstanding energy ties, both for the coming weeks and longer-term.