Commissars were armed, and were to ensure Soviet troops didn't retreat. Think of Obama's "Leading from Behind"...
That was the NKVD “blocking troops” that deployed behind the regular units. The political officers were to indoctrinate the soldiers and keep an eye on the officers.