The president's warning came after Hamas said it will indefinitely delay the release of hostages held inside Gaza. The U.N.'s Secretary General has called for the releases to carry on.