North Africa violence shakes up three countries