An algorithm for the actions of territorial defense units has been developed in the Zhambyl region