Different armed groups are holding 31 foreigners hostage, thousands of expatriate workers have fled and a fifth of oil production is shut down because of militant attacks.