Sometimes criminal shooters are described as snipers, especially if they shoot at people from a hidden spot. However, this word most often means "trained marksman," especially someone who's trained in the armed forces or by law enforcement, like a member of a SWAT team.
someone who, while hidden, tries to shoot a person with a gun. (Definition of sniper from the Cambridge Academic Content Dictionary Cambridge University Press)