Gen. Michael Flynn resigns