The gunman who opened fire Wednesday on the campus of the University of Nevada, Las Vegas killing three people and wounding a fourth had applied for a job at the school but was not hired, according to two senior law enforcement officials briefed on the case.