Militias allied with Burkina Faso's military junta have been linked to a "gruesome" massacre in a western city that left dozens dead this week, Human Rights Watch said.