Police arrested a white man who shouted racial slurs and threatened to kill black congregants gathered inside a church in Richmond, Virginia, on Thursday night, local broadcaster WRIC reported.

No one was injured in the incident at the United Nations Church International, about 4 miles from downtown in the predominantly black capital city of Virginia, and police quickly took the person into custody, WRIC reported.

The confrontation came a night after a white man opened fire inside an historic African-American church in Charleston, South Carolina, during a Bible study, killing nine people in an attack that is being investigated as a hate crime.

A video of the Richmond incident posted online by WRIC showed the man outside the church rapping on the window with an object and using a racial epithet as those inside frantically called for the doors to be locked.

Police investigating disturbance at Richmond church: http://t.co/xoI7sZgsq7 pic.twitter.com/UO6VxrVtd8 — 8News WRIC Richmond (@8NEWS) June 19, 2015

"All I know is he had a weapon in his hand, banging on the glass, and calling us n——," the senior pastor, Bishop Oren Pullings, told the station.

Witnesses told the broadcaster the man threatened to kill everyone in the church.

Reuters could not independently verify the report. Calls to the Richmond Police Department were not immediately returned.

Wednesday night’s shooting in Charleston followed a string of police killings of unarmed minorities across the United States over the past year that prompted waves of protest and renewed a movement for civil rights under the banner of "Black Lives Matter."