@moledarya,
Press and hold down the on/off button. After a few moments the screen will go off as the Kindle shuts down. It then will either restart automatically or you can turn it back on the usual way.
(It has happened to me and my Kindle fire tablet a few times)