MP minister quits after sodomy charges