Shehzad hits hundred but Pakistan toil for runs