Spontaneous breaking of supersymmetry through dimensional reduction