Gaza-linked Egypt attack hurts Hamas border bid