First-order Fermi acceleration driven by magnetic reconnection