Oscar Ramiro Ortega-Hernandez, 21, arrested after US officials discovered that two bullets had hit the White House

A man has been arrested in connection with an investigation into a shooting near the White House, the US Secret Service has said.

The Secret Service discovered on Tuesday that two bullets had hit the White House, one of them apparently cracking a window on the residential level while President Barack Obama was travelling.

The discovery of the bullet holes followed reports of gunfire near the White House on Friday night, although the bullets have not been conclusively connected with the Friday shooting. An assault rifle and an abandoned vehicle were found, which led authorities to link Oscar Ramiro Ortega-Hernandez to the reported gunfire.

Ortega, 21, was arrested Wednesday by Pennsylvania authorities at a hotel in the southwest part of the state, the Secret Service said. He was in Pennsylvania state police custody.

Ortega is from Idaho Falls, Idaho, and was believed to be living in the Washington area. He was reported missing by his family on 31 October. He has an arrest record in three states but has not been linked to any radical organisations, US park police said.

The bullet that hit the window was stopped by ballistic glass. The Secret Service did not disclose the location of the second bullet, saying only that it "was found on the exterior of the White House."

On Wednesday, officials could be seen taking photographs of a window on the south face of the executive mansion. The window they were inspecting is in front of the so-called Yellow Oval Room, according to the White House website. The room is in the middle of the family's living quarters on the floor that includes the president's bedroom and the Lincoln Bedroom.