A man who shot an innocent student in Lancashire following an earlier dispute between his brother and a group of teenagers has been jailed.