Oscar Ortega-Hernandez, the 21-year-old suspect in Friday's gunfire near White House, was obsessed with President Barak Obama, officials said.

According to law enforcement officials, Ortega was unstable with violent tendencies. He was arrested by Pennsylvania state police at an Indiana, Pa., hotel Wednesday.

Officials also believe Ortega is the source of the two bullets that hit the White House. It is thought he believed God had given him a personal mission to attack the White House and the president, officials added. Obama and his wife were out of town at the time.

Ortega's father reportedly told NBC's Telemundo Spanish News Network that his son was obsessed with the date 11-11-11 and believed the world would end that day. Police say he opened fire from his car near the White House area on the same day.

Ortega went missing from his house in Idaho Oct. 31, and must have been staying in the Washington D.C. area for the purpose.

He has a history of arrests, and was detained in Utah, Texas and Idaho but was never linked with any radical group. He had about 19 charges against him, including drugs, underage drinking, domestic violence, resisting arrest and assault on a cop.

Secret Service officials found two bullets on White House grounds Tuesday. The first bullet which was fired at an exterior window of the White House was stopped by ballistic glass. Another round of ammunition was found outside of the White House.

At the time of the shooting, the president and the first lady were in California.

The bullets found on the White House grounds are not definitively linked to the shots fired Friday.

Friday, many people from Washington reportedly heard gunshots and later found an AK-47 semiautomatic rifle in an abandoned car.

Ortega is scheduled to appear in a Pittsburgh court, and faces charges as serious as attempted assassination.