Police: Accused Maryland gunman had vendetta against Gazette