A kinematic model of a solar flare