On the nature of X-ray variability in Ark 564