Quantum Monte Carlo study of the Bose-polaron problem in a one-dimensional gas with contact interactions