Obama: U.S. doesn't have to accept 'carnage as the price of freedom'