Gunshots were fired at a government office in Thailand by a former lawmaker, resulting in his arrest.