An Indian-American congressman said he was worshipping at a Hindu temple when an attack there was foiled. The remarks point to a security scare at the temple involving the lawmaker’s presence during the incident.