Complex dynamics in a simple macroeconomic model with financing constraints