Lattice Boltzmann analysis of fluid-structure interaction with moving boundaries