Fire guts three-family structure Thursday