Last night at around 10:30 p.m., a man entered the Metropolitan Police Department’s Fifth District Police Station on Bladensburg Road NE. While speaking with an officer, he attempted to remove from his pants what appeared to be a gun. The officer and a nearby colleague were able to disarm him and place him under arrest.

In the process, they discovered that his weapon was not in fact a gun, but a black replica pistol.

“The motive for the incident at the police station,” MPD states in a press release, “is unclear and remains under investigation at this time.”

The culprit, identified as 18-year-old D’Angelo Hamilton of Northeast D.C., managed to do some damage with his makeshift weapon. Just prior to entering the police station, MPD reports, Hamilton committed an armed carjacking in the 200 block of Webster Street NE. That’s more than three miles from the station, suggesting that he might have taken his new bounty directly to the cops. The weapon used in the carjacking, according to an MPD spokesman, is believed to have been the same replica gun.

Police charged Hamilton with carjacking, assault on a police officer, and carrying a dangerous weapon—-for which “any weapon used in an unlawful manner” qualifies, according to the spokesman.

Update, 4:45 p.m.: From the Washington Post‘s Peter Hermann.

Toy gun photo via Shutterstock