Algeria's Defence Ministry said a gas facility in the country's central desert came under a rocket attack on Friday, adding that no casualties or damage occurred.
The ministry did not identify the perpetrators of the attack, which occurred on the In Salah gas plant in the central area of Krechba.
"The quick reaction of the army unit in charge of guarding the installation foiled the terrorist attack attempt," a ministry statement read.
The plant is operated by the Algerian state oil company Sonatrach along with the Norwegian energy group Statoil and BP.
Statoil and BP confirmed that none of their staff were injured in the attack.
Sonatrach said the "failed" assault had not disrupted production in the plant, which has about 600 employees.
The attack is the first against a gas facility in Algeria in more than three years.
In January 2013, Islamist gunmen took a group of expatriate workers hostage at In Amenas, another natural gas field in south-east Algeria, killing 40 people during the four-day crisis.