US Secretary of State John Kerry has said Washington will help Baghdad fight al-Qaeda-linked militants, but it is not planning to send troops back to the Arab country.