ISTANBUL — Turkey announced on Saturday that it would continue to withdraw its troops from a military base in northern Iraq, saying that there had been miscommunication with Baghdad regarding the deployment of the forces, sent as part of a mission to train Kurdish and Sunni Arab forces in the fight against the Islamic State.

Turkey recently sent reinforcements to the base in Bashiqa, near Mosul, as part of an international training mission, sparking an angry reaction from the Iraqi government, which said it had never invited the Turkish force.

This week, Turkey withdrew some of the troops after talks between Turkish and Iraqi leaders. On Saturday, the Turkish Foreign Ministry said it would continue to move its troops out of the camp.

It was not immediately clear how many troops would be moved.

Baghdad has called on Turkey to withdraw all its troops from the camp, calling the deployment an “illegal incursion” and a violation of Iraqi sovereignty. Turkish officials said the reinforcement troops and tanks had been deployed to protect Turkish military trainers.