Mechanical element with a shaft which is itself fitted under pressure into at least one composite engaging member and its production method