Optimal minimax rate of learning interaction kernels