Rebel troops in Ivory Coast say they are ending a four-day mutiny after coming to an agreement with the government over a pay dispute.