A time dependent approach to model X-ray and γ–ray light curves of Mrk 421 observed during the flare in February 2010