There are currently only three ways to get TMs. First, as raid rewards, secondly, from a very rare field research reward (win 3 raids), and third once a week from your research stamp box.
Luckily for you during the Water Festival, Sharpedo is one of the easiest Tier 3's to solo ever! It has the lowest defense of any evolved pokemon. If you see one around, it can be beaten really easily by people with only level 20 pokemon.
That being said, solo-ing a tier 3 gets you as much of chance for a TM as participating in a tier 5 raid and getting only 1 extra ball. The ideal way to farm for TMs would be joining a small raid group and getting many balls, but that sounds like it is not a reliable option. If you ever do happen to be doing a Tier 5, make sure to focus on DPS, not potion efficiency, increasing your chances of getting an extra ball, giving you extra rewards.