An unidentified passenger on an S7 Airlines flight had to be restrained after trying to break into the cockpit in order to "have a word" with the pilot.