Authorities believe the man, Kanwaljit Singh, was also an intelligence officer with India’s external intelligence agency, the Research and Analysis Wing, or RAW, the law-enforcement source said. The national-security source didn’t identify Mr. Singh by name but confirmed that CSIS was monitoring an undercover RAW agent posted to the consulate who was also working as a visa officer.