A fire has broken out in a barn with smoke and flames coming out of it.