Stress types are distinguished by force direction and effect: tension stretches, shear slides layers sideways, flexure bends and stretches/shortens opposite faces at once, while compression pushes a material together along its length, directly producing the dimensional shortening described in the question.
Since "shortening" specifically describes a shrink along the direction of load, it points straight to compression rather than the other three effects.
Therefore, the correct answer is Compressive stress.