Rapid X-ray variability from the Seyfert 1 galaxy NGC 4051