Berezinskii-Kosterlitz-Thouless transition in a trapped quasi-two-dimensional Fermi gas near a Feshbach resonance