An Islamabad court sentenced two men to 10 years in prison each in a case involving the blackmail of a minor girl.