First-order phase transition in the ternary sulfide NiV2S4