Iraq tries to avoid regional fight as militias fire at Israel