Nigeria 's main militant group says it has freed 19 Nigerian oil workers kidnapped by other gunmen nearly a month ago .