A Prince George’s County sheriff’s deputy shot and killed a man who displayed a firearm while the deputy was trying to serve a temporary peace order inside a home in the Riverdale area Wednesday night, sheriff’s officials said.

The incident occurred about 7:30 p.m. at a home in the 6300 block of 63rd Avenue, said Sharon Taylor, a spokeswoman for the Prince George’s sheriff’s office. She said that a deputy went to the home to serve a temporary peace order and that a woman let him inside.

Once there, Taylor said, a man “appeared from the rear of the home displaying a firearm.” The deputy, she said, fired his own weapon at the man.

The man, 39, was taken to a nearby hospital, where he was later pronounced dead.

Authorities said they could not be more specific about the armed man’s actions.

“He had a handgun in his possession. Whether he was pointing it or not I don’t know,” said Capt. Nancy Ridgely, also of the sheriff’s office.

Ridgely said she did not have information on the intended recipient of the peace order.

Peace orders are “a means of temporarily separating the parties before they go to court,” Ridgely said. They might be issued to a co-worker or neighbor or in a harassment case, she said. By contrast, protective orders are generally issued in cases of domestic relationships, such as a spouse or fellow parent.

Sheriff’s officials would not immediately release the names of any of those involved.

Taylor said the deputy would be placed on administrative leave, which is standard procedure while Prince George’s County police detectives and sheriff’s internal affairs investigators probe the incident.

Taylor said she did not know how many shots the deputy fired.

She said more details are expected to be released in the coming days.