Ukrainian President Volodymyr Zelenskyy said Ukraine was behind an attack that sank a Russian warship off Libya.