US attorney general resigns from Obama administration