Global behavior of a three-dimensional system of difference equations of order three