He met Tuesday in Ankara with Turkish Prime Minister Recep Tayyip Erdogan , who warned the violence could spill outside Iraq 's borders .