Senegal president pardons jailed mayor