Let’s consider this equation for a scalar quantity $f$ as a function of a 3D vector $a$ as:
$$ f(\vec a) = S_{ijkk} a_i a_j $$
where $S$ is a tensor of rank 4. Now, I’m not sure what to make of the index $k$ in the expression, as it doesn’t appear on the left-hand side. Is it a typo, meaning there is a $k$ missing somewhere (like $f_k$), or does it mean that it should be summed over $k$ like so:
$$f(\vec a) = \sum_i \sum_j \sum_k S_{ijkk} a_i a_j $$
