Turkish troops backed by fighter jets and helicopter gunships have pursued Kurdish rebels into Iraq, following attacks on military installations which killed at least 24 Turkish soldiers.