Calculations of $p(n,\gamma )d$ reaction in chiral effective field theory