I believe both were. I believe at first, it was surplus military/police pistols imported. Then, they refinished some surplus military by removing the military markings and adding new commercial ones. If its true military/police, it will be in arabic on the slide. On the right hand side, you will see farsi writing on the slide and the serial number. On the left hand side you will sometimes see markings of 'A.R.E. or U.A.R.'.......These are fairly rare, as they stand for 'Arab Republic of Egypt' or the most rare 'United Arab Republic'. The united arab republic was a brief pact between egypt and syria (maybe briefly jordan? I forget) in the late 50's early 60's that fell apart over how to go about attaching israel. So, they were only made for a few years.
I don't know if any early ones were imported back then. If back then, it may not be a helwan and instead may be an original beretta model 951. If possible post some pics of the pistol and box. Also, the early helwans and beretta's had a few cosmetic differences......
Hope this has helped.
Oh, if its either true commercial or refinished commercial, the left hand side of the slide will say 'made in egypt' and 'helwan 9m/m' and have importers markings. Try to get one imported by Interarms. The MAadi imports were ok, as were some others....But avoid the newer C.A.I. imports, as some MAY have weak slides.