TEHRAN, Young Journalists Club (YJC) -The attackers struck at an entrance gate to the field, which lies near the town of Zella about 760 km (470 miles) southwest of the capital, Tripoli. They killed the two guards before fleeing, the source and local residents asking not to be named told Reuters.
Daesh claimed responsibility for the attack through its Aamaq news agency later on Saturday.
The Zella field belongs to Zueitina Oil Company, which pumped 19,000 barrels per day on average in the last quarter of 2018 across all its fields.
An engineer told Reuters workers at the field were safe and facilities had not been damaged.
Libya's National Oil Corporation (NOC) chief said on Saturday continued instability in the country could cause it to lose 95 percent of oil production.
Speaking in Saudi Arabia ahead of a ministerial panel gathering on Sunday of top OPEC and non-OPEC producers, Mustafa Sanalla also confirmed the Zella attack.
Daesh has been active in Libya in the turmoil since the overthrow of Muammar Gaddafi in 2011. The militant group took control of the coastal city of Sirte in 2015 but lost it late in 2016 to local forces backed by US air strikes.
In the last two years, the group has targeted three state institutions in Tripoli, home of UN-backed government of national accord led by Prime Minister Fayez Serraj.
Saturday's assault took place as General Khalifa Haftar's Libyan National Army (LNA), which is allied to a rival administration in eastern Libya, mounts an offensive to control Tripoli.