Jakraphanth Thomma, a junior officer, killed his commanding officer before stealing weapons from a military camp on Saturday afternoon, a defence spokesperson told BBC Thai.
The suspect, whose motives remain unclear, then drove to a city centre shopping mall, where he is holed up.
He also posted about the attack on social media.