The tweet doesn’t say he resigned.
It says he's leaving. Trump doesn't fire people so he must have resigned.