A former health minister of Azerbaijan who has been imprisoned for 12 years has been pardoned by the country’s president.