Who resigned due to the attempt on Napoleons life?