Magnetic reconnection and impulsive instabilities in tokamak plasmas: Some analogies with astrophysical flares