Initial stage of the generation of dam-break waves