Windies revival frustrates Pakistan in first Test