Baltimore Mayor Sheila Dixon will resign next month , part of a plea deal reached Wednesday that brings a years-long corruption investigation to a close and ends the tenure of the city 's first female mayor .