A worker has died in Qatar in an incident at a resort used by Saudi Arabia at the World Cup, the government has said.