"He said that when he pulled out the gun, he felt an energy controlling him," an affidavit says.