A holographic description of the Schwinger effect in a confining gauge theory