The 25-year-old black man accused of a deadly shooting at a church near Nashville had a note in his car that made reference to revenge for the church massacre carried out by a white supremacist in Charleston, S.C., according to a report by The Associated Press.

The note could help investigators better understand the state of mind of the gunman, identified as Emanuel Kidega Samson, when he fatally shot a woman and left half a dozen wounded as services were ending last Sunday at the Burnette Chapel Church of Christ in the Nashville area. The note also suggests a possible motive for the attack.

Mr. Samson of La Vergne, Tenn., was charged with murder and is being held without bond. The police said they expected additional charges to be filed.

The Associated Press said that its reporters had not seen the note but learned of its contents from two law enforcement officials who read from it. A law enforcement report said that “in sum and in no way verbatim,” the note made reference to retaliation for the actions of Dylann S. Roof, the white supremacist responsible for the 2015 murders at the Emanuel African Methodist Episcopal Church in Charleston, according to The A.P.