A soldier has killed 26 people and injured dozens more in a gun rampage in the Thai city of Nakhon Ratchasima.
Jakraphanth Thomma, a junior officer, killed his commanding officer before stealing weapons from a military camp, a defence spokesman told BBC Thai.
The suspect then drove to the city centre and entered a shopping complex, where he is believed to be holed up.
The suspect, whose motives remain unclear, posted images of his attack on social media sites.
What is the situation now?
Authorities have sealed off the Terminal 21 shopping centre in Nakhon Ratchasima, also known as Korat, as they try to track down the suspect.
Troops and police have entered the building and there have been reports of more gunshots.
Thai police say Jakraphanth Thomma, the soldier who killed 26 people in a gun rampage in the Thai city of Nakhon Ratchasima, has been shot dead by the security forces.
The gunman, who posted material to social media, was shot dead after being cornered all night in the building.
Thailand’s Prime Minister Prayuth Chan-ocha gave the higher death toll on Sunday, an increase from an earlier figure of 20. Fifty-seven people are wounded.
Defence ministry spokesman Lt Gen Kongcheep Tantravanich said hundreds of people had been brought out of the complex safely, but there could be dozens still in the building.
A tweet from security forces said the ground floor had now been cleared.
The Bangkok Post reported earlier that the suspect, who it said was 32 years old, had taken hostages, but this has not been officially confirmed.
Security forces evacuate people from the shopping complex
The suspect’s mother has been brought to the shopping centre to try to persuade him to give himself up.
One of the people freed told the BBC how she and others hid in a bathroom on the fourth floor, before fleeing to the second and hiding under a restaurant table for three hours, hearing at least four gunshots before she saw some soldiers and could get to safety.
Public Health Minister Anutin Charnvirakul confirmed that 16 people had died at the scene of the shootings, with another four dying later in hospital. A total of 31 people have been injured, with 10 of them in a critical condition. But there are fears the numbers could rise.
How did the attack unfold?
It began in the late afternoon at the Suatham Phithak military camp, where the commanding officer, named by the Bangkok Post as Col Anantharot Krasae, was killed.
The Post said a 63-year-old woman and another soldier were also killed there.
The suspect seized arms and ammunition from the camp before taking a Humvee-type vehicle.
He then opened fire at a number of sites before arriving at the Terminal 21 shopping centre.
Local media footage appears to show the suspect getting out of his vehicle and firing shots as people flee.
CCTV footage shows him inside the shopping centre with a raised rifle.
Other footage showed a fire outside the building, with some reports saying it was caused by a gas canister that exploded when it was hit with a bullet. One of the suspect’s social media posts features an image of himself with the fire in the background.
Prime Minister Prayuth Chan-ocha is following developments and expressed condolences to the families of those killed, a spokeswoman said.
The public health minister has put out an appeal for people to donate blood at hospitals in the area.
What did the suspect post on social media?
He posted on his social media accounts during the attack, with one post on Facebook asking whether he should surrender.
He had earlier posted an image of a pistol with three sets of bullets, along with the words “it is time to get excited” and “nobody can avoid death”.
Facebook has now taken the page down.
It said: “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.”