Officials said a joint operation in the West African country killed the group’s alleged second in command.