Deterministic control of an antiferromagnetic spin arrangement using ultrafast optical excitation