US Secretary of State John Kerry on Sunday raised the threat of Islamic militants in Iraq and Syria directly with his Iranian counterpart in high-level talks in New York, a US official said.