Mauritania, Saudi Arabia ink military agreement