The gang, which was targeting houses in Himachal Pradesh, was caught at a private rest house near the Baglamukhi temple.