A sword-wielding man was fatally shot Saturday night after a standoff with Fairfax County police, authorities said.

Fairfax County police said the shooting occurred just after 11 p.m. when police responded to an apartment in the 5700 block of Backlick Road in Springfield for a report of a “wanted person.” Police discovered a man in a bedroom, and he then threatened them with a sword and refused to heed their commands, police said.

Officers opened fire with “bean bag” rounds and real bullets, seriously wounding the man. He later died at a hospital, police said.

The man had been wanted on several warrants charging him with child pornography-related offenses.

“Officers were familiar with the suspect because they’d encountered him previously on Friday,” when he provided them with fake identification and managed to run away, police wrote in a press release Sunday. Officers then obtained two more warrants charging the man with resisting arrest and identity theft.

Police did not release the man’s identity, saying they had not yet informed relatives of his death. Officer Shelley Broderick declined to release the name of officers involved in the incident or to provide a precise address where the shooting took place.