In 1932, the Party assigned Fomin to the
Soviet Army, where he became a political commissar and began a nomadic life of the military:
Pskov,
Crimea,
Kharkov,
Moscow, and
Latvia. In August 1938, Fomin was designated as the divisional commissar of the 23rd (Kharkov) Rifle Division. In 1940, he served in
Daugavpils, Latvia. However, in March 1941, he was demoted to a regimental commissar and assigned to the
84th Rifle Regiment of the
6th Rifle Division stationed in
Brest. On 21 June 1941, Fomin wanted to travel to Daugavpils to bring his family to Brest, but he failed to get a train ticket due to a big crowd of people at the railway station. On 22 June, Fomin was at the
Brest Fortress, when the
Wehrmacht started the war codenamed
Operation Barbarossa. As the only higher commander present, he took over the command of the group of Soviet soldiers
that defended the
Kholm Gate. The battle for the fortress continued for several days. Fomin moved to the northern part of the fortress' Central island where he was captured on 26 June 1941. Fomin was identified as a commissar and a Jew and due to the
Commissar Order he was shot without delay, presumably, near the
Kholm Gate. ==Posthumous honours==