Niger cancels military pact with Benin