At least 30 Afghans were killed on Sunday when the tunnel they were digging in to mine gold in northern Afghanistan collapsed, officials said.