Realistically, it would have to have been a military operation. Causing explosions in the middle of the sea is rather difficult. And probably near impossible for your average terrorist group.
Personally, I suspect it's the US. It does have the earmarks of a Russia operation tho. It's just deniable in a weird way while they still get the credit for it.
However, what does Russia gain by reducing the dependency on Russian gas? Before they were trying to get Germany to open up Nordstream 2 since it's complete but now that's not possible. Gas prices go up but if you're ability to sell gas is limited that doesn't help much.
On the otherside are the US, who are well known for operating shady secret missions to affect geo politics in their favour. The fact it happened on the day another gas pipeline opens would make it seem like it's possible that someone wanted the other gas pipeline to become more popular and used instead.