Thai police say that a soldier who killed 20 people in a gun rampage in the Thai city of Nakhon Ratchasima has been shot dead by the security forces.
Jakraphanth Thomma on Saturday killed his commanding officer before stealing weapons from a military camp.
The suspect continued his attack in a shopping centre in Nakhon Ratchasima, also known as Korat.
He posted material to social media, but his motives for his actions remain unclear.
“We don’t know why he did this. It appears he went mad,” Defence Ministry spokesman Kongcheep Tantrawanit told Reuters news agency.
Public Health Minister Anutin Charnvirakul posted on his Facebook page on Sunday morning, congratulating the security forces for their actions in the northeastern Thai town.
“Thank you police and army for ending the situation. Shooter shot dead!!!”
Officials said that the death toll stood at 20, with 42 wounded, revising an earlier total of 21 dead.
“The official number of the dead right now is 20 and 42 wounded. Of them, 21 are still in hospital and 21 have gone home,” said Narinrat Phitchayakhamin, head of the Provincial Office of Public Health in the town.
However, it is still possible that the number of fatalities could rise.