Who is “the bad guy” who gets shot at the end of season 5 in The Rookie?

Warning: Spoilers!!! At the end of the final episode of Season 5, a guy wearing a mask is shot by Tim, Lucy, Nolan, and Gray. Before that, he was talking to his boss on the phone, and later it becomes clear that he had a history with The Rookie, meaning he had already appeared in…