(CNN) Thailand police revealed Sunday they tried several times to persuade a soldier who had killed 29 people to turn himself in, and even brought the gunman's mother in to talk to him.

The shooting at a military base in Thailand's northeastern Nakhon Ratchasima province, known as Korat, and a crowded shopping mall also left 58 others injured -- 30 of whom remain hospitalized -- before the gunman was killed by police at around 9 a.m. local time on Sunday (9 p.m. ET Saturday), according to officials.

Seven bodies have been extracted from the Terminal 21 shopping mall where the rampage ended, Thai Public Health Ministry official Narinrat Pitchayakamin said Sunday. This figure likely includes the gunman's body.

Thai rescue teams walk pass a shooting victim's vehicle outside Terminal 21 Korat mall.

Mourners attend a vigil for victims of the mall shooting on Sunday in Korat, Thailand.

While most fatalities happened at the shooting scenes, two victims died in hospital during surgery, Pitchayakamin added.

Thai authorities said the attacker was believed to be Army Sub. Lt. Jakrapanth Thomma, of the 22nd Ammunition Battalion.

Read More