President Obama shares nation's grief