President Barack Obama says the U.S. strongly condemns what he's calling an "outrageous terrorist attack" against ally Turkey.

Kurdish rebels in northern Iraq killed at least two dozen Turkish soldiers and wounded more than a dozen others in attacks along the border Wednesday. That prompted a retaliatory attack by Turkish soldiers, air force bombers and helicopter gunships.

Obama says the U.S. will continue to cooperate with the Turkish government as it battles the terrorist threat posed by the PKK rebel group and tries to bring peace to southeast Turkey. The PKK is fighting for autonomy in that part of Turkey.

Obama says the Turkish people, like people everywhere, deserve to live in peace, security and dignity. He issued a statement while traveling Wednesday in Hampton, Va.