Kyle Odom, the former Marine suspected of shooting Idaho pastor Tim Remington on Sunday, was arrested Tuesday evening outside the White House, according to Coeur d’Alene Police and the Secret Service.

The Secret Service said in a statement that Odom “threw unknown material over the south fence line at the White House Complex.”

He was immediately taken into custody.

Hours earlier, someone posted a message to Odom’s Facebook page claiming Remington was shot because the pastor was “from Mars” and had “ruined” Odom’s life, according to Wash. television station KXLY.

Odom’s profile picture also was changed to a drawing of an alien.

Police in Coeur d’Alene, Idaho, where the shooting took place, announced Monday that Odom had a history of mental illness.

The shooting gained national attention, in part because Remington had prayed with Republican presidential candidate Ted Cruz at a campaign rally in Coeur d’Alene on Saturday.