France says it will help Benin battle militants