The woman he murdered wasn't his wife. They are still looking for a link and he came here on a student visa.
UCLA Shooter Entered U.S. on Foreign Student Visa In 2001
Yes, she was his wife. And while Sarkar may have entered the country on a student visa, he's been a full legal resident since 2014.
UCLA shooting: Gunman's wife found dead in Minnesota - CNN.com