Learning Theory for Inferring Interaction Kernels in Second-Order Interacting Agent Systems