Six members of the Sri Lankan cricket team have been wounded during an attack by around a dozen masked gunmen in Pakistan.