IS militants attack Iraqi city