Kim Jong-un has executed a senior North Korean official by firing squad because he did not sit properly during a meeting.