Iraqi officials say the Iranian military has fired artillery at several villages in northern Iraq where Iran believes Kurdish rebels are based .