Forty-one people—including as many as seven Americans—have been taken hostage in Algeria after a terrorist attack.