Subsequently, Khomeini accepted a truce mediated by the UN