Farm building near Thomasboro damaged in fire