US president says although the pilots were rescued, Washington 'must, of necessity, respond to this attack'.