Likelihood-based parametric estimator for memory kernel in molecular dynamics