Early results from GLASS-JWST. IV: Spatially resolved metallicity in a low-mass $z\sim3$ galaxy with NIRISS