Locals in Brechin were evacuated from their homes after the blaze took hold.