Photometric Metallicities for Low-mass Stars with Gaia and WISE