Iraqi oil minister Hussein al-Shahristani had declared as " illegal " a previous agreement between the Kurdish regional government and a foreign oil company , Hunt Oil .