Obama: "There will still be tragedies"