MOGADISHU, Somalia (CNN) -- French forces swooped into Somalia for a rescue mission under the cover of darkness, leading to a fierce gun battle with militants who killed the hostage, the French defense ministry said Saturday.
The raid Friday night also left a French soldier and 17 Islamist fighters dead, according to the French ministry. Another soldier went missing.
Hostage Denis Allex died at the hands of his captors, the defense ministry said in a statement.
French Defense Minister Jean-Yves Le Drian also told reporters in Paris Saturday that "everything leads us to believe that Denis Allex was gunned down by his captors."
But the al-Shabaab militia, which is affiliated with al Qaeda, claimed that the hostage is unharmed and being held at a new location.
The militants said in a statement on their Twitter account that they will decide the hostage's fate in the next two days.
The racket of helicopter blades and volleys of gunfire startled Bulo Marer town residents out of their sleep Friday night, when French paratroopers descended on the camp.
Three helicopters initiated a heated gunbattle with captors under the cover of darkness in the town about 75 miles northwest of the capital Mogadishu, eyewitnesses said.
French soldiers leaped from the aircraft to engage the Islamists on the ground.
The French commandos faced strong resistance from the outset, the defense ministry said in a statement. "In the course of the assault, fierce fighting took place."
Al-Shabaab claimed the French soldiers left behind combat gear and a wounded comrade before disengaging.
"The injured French soldier is now in the custody of the Mujahideen," al-Shabaab said.
Allex was abducted on July 14, 2009, while on an official mission in Mogadishu in support of the transitional Somali government, the French defense ministry said.
French media reports suggest that Denis Allex is a pseudonym for the military serviceman.
France said it decided to undertake the rescue attempt after the terror group failed to negotiate for the hostage's release for three and a half years while holding him in inhumane conditions.
Le Drian expressed his sympathy to the families of the French servicemen lost in the attempt.
"The soldiers' families, who are suffering, have been informed about the situation, especially Denis Allex's spouse, whom I have met several times," he said.
The defense minister added that there was no connection between the operation in Somalia and a simultaneous deployment of French troops to Mali.
A French helicopter pilot was fatally wounded during aerial raids in support of Malian forces combating Islamist forces Friday afternoon.
The rescue attempt in Somalia might well have been undertaken sooner had if weather conditions had allowed, Le Drian said.
Omar Nor reported from Mogadishu, and Laura Smith-Spark wrote in London. CNN's Joseph Netto, Pierre Meilhan and Ben Brumfield contributed to this report.
™ & © 2013 Cable News Network, Inc., a Time Warner Company. All rights reserved.