* Suspect still at large in shopping mall in northeastern city
* Suspect posted on Facebook before and during rampage
* Authorities rescue hundreds of trapped shoppers
* Health minister calls for blood donations

A Thai soldier shot dead at least 20 people Saturday, posting messages on Facebook as he went on the rampage in a northeastern city where he was still holed up in a mall nearly 12 hours after he first struck, authorities said.

Several bursts of automatic gunfire could be heard from inside the mall just after 2.40 a.m. (1940 GMT)
Thai security forces stormed the Terminal 21 mall in the city of Nakhon Ratchasima and helped hundreds of people to escape. Looking dazed and exhausted, shoppers and storeworkers came out in small groups into the early hours of Sunday as police and soldiers worked through the mall floor by floor.


This screenshot made from the Facebook page of Jakrapanth Thomma, a Thai soldier wanted in connection to a deadly attack in the northeastern city of Nakhon Ratchasima, shows him holding a gun at an unknown location
.


"It was frightening because I could hear the occasional gunshot ... we waited a long time for the police to come and help us, many hours." said Suvanarat Jirattanasakul, 27, her voice trembling after she emerged.
The soldier opened fire in several places, first at a house and then at an army base, before heading to the shopping mall in Nakhon Ratchasima, which is about 250 km (155 miles) from the capital Bangkok, police said.
Local media showed footage of the soldier getting out of a car in front of the mall and firing off a series of shots as people fled for cover.
"We don't know why he did this. It appears he went mad," Defence Ministry spokesman Kongcheep Tantrawanit told Reuters.
One video from a bystander showed a man slumped at the wheel of a car in a pool of blood. It was unclear if he was among the dead. Another video showed at least four people who had clearly been shot and showed no sign of movement.
CCTV footage from inside the mall posted on social media showed the gunman dressed in black and wearing a mask, his gun slung over his shoulder with no sign of other people around.
Kongcheep said at least 20 people had been killed and it was not clear whether the gunman had taken hostages in the mall.
"It's not known how many are still inside," said.
The health ministry said 31 people had been wounded and 10 were in a critical condition.
Police identified the suspect as Jakrapanth Thomma. During the attack he posted "Death is inevitable for everyone" on his Facebook page and later asked "Should I give up?"
Facebook said it had removed the suspect's account.
"Our hearts go out to the victims, their families and the community affected by this tragedy in Thailand. There is no place on Facebook for people who commit this kind of atrocity, nor do we allow people to praise or support this attack," a Facebook representative said in a statement.
Thai media said the suspect's mother was being taken to the mall to try to persuade him to give up. Video showed her in tears saying "why did he do it?" as she got in a police vehicle.
Major shootings are rare in the Southeast Asian country other than in the far south, where a decades-old insurgency persists.
The shooter first went to a house in the city and shot two people dead before going to an army base, where he took a gun from the weapons store and fired at people, local police said.
Public Health Minister Anutin Charnvirakul asked on his Facebook page for blood donations at four hospitals in the area.
Prime Minister Prayuth Chan-ocha expressed condolences to the families of those killed, a government spokeswoman said.
Nakhon Ratchasima is one of the biggest cities in northeastern Thailand, an island of relative prosperity in a rice growing area that is one of the poorest parts of the country of 69 million people.