Receive the latest national-international updates in your inbox

A file photo of police tape. The 16-year-old started attending Living Word Church of God three months ago and appeared to be turning his life around after having contemplated suicide several months earlier, Pastor David Stevens said.

The teenager accused of gunning down two employees inside a New Mexico public library had planned to shoot up his high school but went to the library instead, according to court documents filed Wednesday.

The 16-year-old told police he did not know why he picked the Clovis-Carver Public Library and that he did not know anyone there, the documents said.

But he told investigators he had wanted to target his high school for a long time because he was "mad at everyone since he got kicked out of school last year," the documents said. He also told them he felt like no one liked him.

The teen was on a two-day suspension from Clovis High School on Monday, the day of the shooting. The teen's pastor, David Stevens, has said the suspect had fought back after another boy hit him.

Parkland Shooting Survivor Calls 'BS' on Politicians' Gun Stance

Marjory Stoneman Douglas High senior Emma Gonzalez had a message for president Donald Trump and for other politicians on their failure to enact sensible gun laws: "BS." Gonzalez was one of several survivors to speak at a rally held outside the Federal Courthouse in Fort Lauderdale, Florida, to speak out against the gun lobby.

(Published Sunday, Feb. 18, 2018)

NBC News generally does not identify juveniles accused of crimes.

The suspect is accused of taking two handguns from his father's safe and walked into the library in the rural community on Monday afternoon. He told investigators he first used the library's bathroom, exited and started shooting and yelling.

Witnesses have said it appeared the gunman fired randomly as parents, children and others hid under tables and behind closed doors. Four others also were seriously wounded, including a 10-year-old boy.

Authorities plan to file a motion requesting the case's transfer from the juvenile system to adult court. The boy was in custody Wednesday at a juvenile detention center pending a hearing Thursday afternoon.

The boy's father called police Monday to report that the guns had been taken from the safe and that his son was not home but the shooting had already happened, the court documents said.

Russians Indicted for Alleged Election Meddling Conspiracy

Deputy Attorney General Rod Rosenstein announces indictments against 13 Russians and three Russian entities accused of meddling in the 2016 U.S. presidential election.

(Published Friday, Feb. 16, 2018)

The teen told investigators that he had "been thinking bad things for a while" but did not want to tell his family, his girlfriend or friends at the Living Word Church of God, where he had been attending services for about three months, the documents said.

Stevens, the youth's pastor, said the teen had been troubled but appeared to be turning his life around, never missed a service and recently helped the congregation raise money for a youth camp. The boy and Stevens' daughter were dating.

Investigators found a bag with suicide notes inside a desk drawer at the teen's home, the documents said.

After officers stormed the library and the teen surrendered, police found a handgun on a nearby shelf as the teen held his hands above his head, the documents said. They also found a bag in the library with a second handgun and ammunition.