Zambia's foreign minister has announced his resignation in a scathing Facebook post, denouncing the country's "path of insatiable greed ... and its people" over "a position, party or person".