The gunman was sentenced to 27 years imprisonment for attempted murder after he shot the victim from close range