Turkey says it will move more of its troops out of northern Iraq, acknowledging a "miscommunication" with the Baghdad government.