Solar extreme ultraviolet variability of the X‐class flare on 21 April 2002 and the terrestrial photoelectron response