Thousands of Muslims attacked and set fire to a Hindu temple in northwest Pakistan on Wednesday, police and witnesses said, with videos circulating on social media showing men using hammers to damage the temple after an address from Muslim leaders.