WELLINGTON, New Zealand -- A gas explosion ripped through one of New Zealand's largest coal mines Friday while dozens of workers were underground. Five of them, dazed and slightly injured, stumbled to the surface hours later, and 27 were missing, officials said.
Police said that shortly before the blast the electricity went out in the mine, which may have caused ventilation problems. That may have contributed to a buildup of gas underground. Rescue teams were waiting for word that the mine was safe to enter.
Television footage showed blackened and singed trees and light smoke billowing from the top of a mountain where a 360-foot (110-meter) -long ventilation shaft emerges. A nearby hut had been blown down, suggesting a powerful blast had shot up the shaft from deep in the mine.
Police said there could still be pockets of explosive methane gas in the mine, and air quality tests were underway in the ventilation shaft. The power outage was complicating efforts to pump fresh air into the mine and make it safe for rescuers to enter.
"They're itching to get in there and start looking for other people and a bit frustrated at having to stand and wait," said police spokeswoman Barbara Dunn. "There is concern that ventilation inside the mine shaft may be compromised by the power outage."
Specialist teams were preparing for a rescue bid Saturday at the mine, located in rugged mountains near Atarau on New Zealand's South Island. But Tony Kokshoorn, mayor of nearby Greymouth who visited the mine, said it could be days before it was safe enough for them to enter.
"We are holding on to hope," he told reporters. "Look at Chile, all those miners were trapped and they all came out alive."
While the condition of the missing miners was not clear, the prospect that they could be alive but trapped recalls the dramatic saga of 33 Chilean mine workers who spent 69 days a half-mile (a bit less than a kilometer) deep in a collapsed gold and copper mine. They were rescued last month in an event played out on international television that captivated the world.
John Dow, chairman of the mine operator Pike River Coal Ltd, said each miner carried 30 minutes of oxygen supply -- enough to reach oxygen stores in the mine that he said would allow them to survive for "several days."
The coal seam at the mine is reached through a 1.4-mile (2.3-kilometer) horizontal tunnel that bores into the mountain toward the seam, which lies about 200 yards (meters) beneath the surface. According to the company's website, the vertical ventilation shaft rises 354 feet (108 meters) from the tunnel to the surface.
Kokshoorn said it was unclear at what depth the explosion happened but that the blast was very large. He put the number of miners unaccounted for at up to 30. Peter Whittall, chief executive of mine operator Pike River Coal Ltd., said 27 people were missing -- 15 miners employed by the company and 12 local contractors.
Pike River spokesman Dick Knapp confirmed late Friday that the mine had been rocked by a gas explosion, but said its cause was still unknown.
Whittall said five workers had walked out of the mine two to three hours after the blast: a pair that included the machine operator who was blown off his vehicle one mile (1.5 kilometers) into the access tunnel. Three more came out later. One of the men had been able to make a call on his cell phone before reaching the surface, he said.
New Zealand Prime Minister John Key said the situation at the mine had the potential to be very serious.
"The government has told the company it will provide any support that is required. It is an Australian company that owns the mine and the Australian government has also contacted us offering their support (and) assistance," he told reporters.
Pike River Coal is a New Zealand-registered company, but its majority owners are Australian. There are also Indian shareholders.
Energy Minister Gerry Brownlee said the explosion happened at about 3:45 p.m. (0245 GMT, 9:45 p.m. EST) and the last contact with any of the miners was about half an hour later. They had not spoken to any of the missing miners during that time.
Two of the men who came to the surface were taken to a hospital for treatment of minor injuries.
"They're being interviewed and we're trying to determine ... the full nature of the incident," Whittall said.
It was not immediately clear if all of those underground were together or in separate groups.
Brownlee said emergency exit tunnels were built into the mine but that he didn't know if they could be accessed by the miners.
Whittall said the horizontal mine tunnel would make the rescue effort easier than if the shaft was at a steep angle.
"We're not a deep-shafted mine so men and rescue teams can get in and out quite effectively, and they'll be able to explore the mine quite quickly," he said. "They will work throughout the night and they'll work until they can go right throughout the mine and determine the extent of the incident and the safety of our employees."
Pike River has been operating since 2008, mining a seam with 58.5 million tons of coal, the largest-known deposit of hard coking coal in New Zealand, according to its website.
Pike River says its coal preparation plant at the site is the largest and most modern in New Zealand and processes up to 1.5 million tons of raw coal a year. It is country's largest single source of coal exports.
The mine's ventilation shaft was blocked by falling rocks in early 2009, delaying mining for months.
The mine is not far from the site of one of New Zealand's worst mining disasters -- an underground explosion in the state-owned Strongman Mine on Jan. 19, 1967, that killed 19 workers.
Associated Press reporter Tanalee Smith in Adelaide, Australia, contributed to this report.