In recent months , France and the United States have used military force to rescue hostages , while at other times , foreign hostages have been released after ransoms were paid .