Phase Transitions of Fermions Coupled to a Gauge Field: a Quantum Monte Carlo Approach