The caretaker cabinet will be led by one of the militant group’s founders.