A police officer has described the moment he was shot with a crossbow - as his "extremely dangerous" attacker was sentenced to nine years in jail.