The man fatally shot by a Prince George’s County sheriff’s deputy Wednesday evening was 39-year-old Franklin H. Sweeney Jr., officials said.

According to county Sheriff Melvin C. High, Deputy Paul Perriello, a 20-year veteran, went to a home in the 6300 block of 63rd Ave. in Riverdale about 7:30 p.m. to serve a peace order on Sweeney. After Perriello was invited into the home by a woman, High said, Sweeney appeared from the rear of the residence holding what appeared to be a black handgun.

Perriello fired at Sweeney, who was pronounced dead at a hospital.

Sweeney’s gun was later determined to be a replica, High said.

As is routine, Perriello has been placed on administrative leave during an investigation into the incident, according to High.

In a separate incident, a gun or guns were fired at a District Heights home early Thursday morning after an FBI SWAT team went there to serve a search warrant, authorities said.

The incident occurred about 6:30 a.m. at a home in the 6700 block of Kipling Parkway, According to Shayne Stein, a special agent at the FBI’s Baltimore Field Office. A SWAT team from the FBI’s Baltimore office was executing a warrant, obtained by agents at the Washington Field Office, and was at the door of the home when the shooting took place, according to Stein.

A woman, apparently an occupant of the home, was injured in the incident, though Stein said that injury was related to a fall and not a gunshot.

Specific circumstances of the shooting were unclear. Stein said she did not know how many shots were fired or how many people fired their guns.

Andrew Ames, spokesman for the FBI’s Washington Field Office, did not know whether any agents from his office were present at the house. The nature of the warrant was also unclear.

Maggie Fazeli Fard and Allison Klein contributed to this report.