Technique for the Generation of Attosecond X-Ray Pulses Using an FEL