Agents were a few holes ahead of Trump on Sunday when they noticed the person with the firearm, an official said.