Three-dimensional simulation of a self-propelled fish-like body swimming in a channel