Chad's prime minister resigns along with government