Well, the Archduke was visiting Bosnia I believe. If I'm not mistaken...
Čabrinović's first attack, a grenade, actually failed; the two rounds fired by his associate Gavrilo Princip-- one for Ferdinand, the other for his wife Sophie-- struck true. He may have been a lousy shot, but a mistake in the scheduling of the royal procession allowed him to coolly approach the royal couple as they sat right in their car and shoot them at point-blank range.