An Italian man imprisoned in Syria for almost three years has been freed, the Italian prime minister’s office said on Wednesday.