Britain's interior minister has resigned after Prime Minister Theresa May's government faced criticism for its treatment of some long-term Caribbean residents who were wrongly labelled illegal immigrants, a government official said.