"Extremists from the Libyan subsidiary of IS mounted a surprise attack on the oilfield, killing eight soldiers," Ali al-Hassi said.
Libya's National Oil Company also confirmed the attack.
A statement from the NOC said that unidentified gunmen rampaged through buildings and other infrastructure and set fires, adding that staff were unharmed as they had fled.
Columns of smoke from the burning oilfield could be seen as far as the town of Zela, 60 kilometres (40 miles) away, the statement said.
On Tuesday, Islamist militants seized Al-Bahi and Al-Mabrouk fields south of the city of Sirte, prompting the NOC to declare "force majeure" at all 11 oilfields in the North African nation.
The legal measure means that due to unforceable circumstances the NOC can be exonerated from fulfilling oil contracts.
The company also threatened on Wednesday to "close all fields and ports" if the security situation does not improve.
Violence and a slowdown at export terminals had already forced most oilfields to shut down for the past several weeks.
Oil is Libya's main natural resource, with a pre-revolution output of about 1.6 million barrels per day (bpd), accounting for more than 95 percent of exports and 75 percent of budget revenues.
But production fell to around 350,000 bpd in December when the Fajr Libya coalition of militias, including Islamist groups, attacked oil terminals in the east.
Libya has been awash with weapons since the 2011 uprising that toppled and killed Kadhafi, and opposing militias have since been battling to control its cities and oil wealth.
You’ve reached your limit of {{free_limit}} free articles this month.
Subscribe now for unlimited access.
Already subscribed? Log in
Subscribe to read the full story →
Smart Quarterly
₹900
3 Months
₹300/Month
Smart Essential
₹2,700
1 Year
₹225/Month
Super Saver
₹3,900
2 Years
₹162/Month
Renews automatically, cancel anytime
Here’s what’s included in our digital subscription plans
Exclusive premium stories online
Over 30 premium stories daily, handpicked by our editors


Complimentary Access to The New York Times
News, Games, Cooking, Audio, Wirecutter & The Athletic
Business Standard Epaper
Digital replica of our daily newspaper — with options to read, save, and share


Curated Newsletters
Insights on markets, finance, politics, tech, and more delivered to your inbox
Market Analysis & Investment Insights
In-depth market analysis & insights with access to The Smart Investor


Archives
Repository of articles and publications dating back to 1997
Ad-free Reading
Uninterrupted reading experience with no advertisements


Seamless Access Across All Devices
Access Business Standard across devices — mobile, tablet, or PC, via web or app
