A retired man clung to a roof beam when the ladder beneath him fell down