Treating heart attack with a defibrillator