Pakistan out of semi-finals