Variable stars in the fornax dsph galaxy. I. The globular cluster fornax 4