No such k exists. For suppose that k and p are as described. Consider the number
A=i=0∑p−1(i3−1)3k.
Because p−1=6k is divisible by 3, there are three cube roots of 1 modulo p. Therefore, three terms in the sum are 0 modulo p, and the others are [(p−1)/2]th powers of nonzero residues, hence are congruent to either 1 or −1 modulo p. Consequently, A is congruent to one of the residues p−3,p−5,p−7,…,−(p−3) modulo p. In particular, A cannot be congruent to 1 or −1 modulo p.
On the other hand, applying the binomial theorem and changing the order of summation, we have
A=i=0∑p−1(j=0∑3k(j3k)(−1)ji3(3k−j))=j=0∑3k((−1)j(j3k)i=0∑p−1i3(3k−j)),(1)
where we use the convention 00=1 for the case i=0,j=3k.
Now, we claim that ∑i=0p−1id≡0(modp) if p−1∤d. For this, choose a primitive root g modulo p and notice that gd≡1(modp), while we have
(gd−1)i=0∑p−1id≡i=0∑p−1(g⋅i)d−i=0∑p−1id≡0(modp),
giving the claim. Further, notice that ∑i=0p−1id≡0(modp) when d=0.
Now, because 3⋅(3k)<2(p−1), the only value of j such that 3⋅(3k−j) is a multiple of p−1 is j=k, where 3⋅(3k−j)=6k=p−1. This means that the sums ∑ii3⋅(3k−j) are congruent to 0 modulo p unless j=k. Further, for j=k, the sum evaluates to
i=0∑p−1i6k≡i=0∑p−1ip−1≡i=1∑p−11≡−1(modp).
Considering (1) in this light, we find that
A≡(−1)k⋅(k3k)⋅(−1)(modp).
Since we saw that A is not congruent to 1 or −1 modulo p, we conclude that (k3k)≡1(modp), a contradiction.