courtesy John and Maria Castillo
Now playing
02:27
This student died trying to stop Colorado school shooter
WASHINGTON, DC - APRIL 28: Sen. Sheldon Whitehouse, D-R.I., attends the Senate Judiciary Committee confirmation hearing in Dirksen Senate Office Building on April 28, 2021 in Washington, DC. Ketanji Brown Jackson, nominee to be U.S. Circuit Judge for the District of Columbia Circuit, and Candace Jackson-Akiwumi, nominee to be U.S. Circuit Judge for the Seventh Circuit, testified on the first panel. (Photo By Tom Williams-Pool/Getty Images)
Tom Williams/Pool/Getty Images
WASHINGTON, DC - APRIL 28: Sen. Sheldon Whitehouse, D-R.I., attends the Senate Judiciary Committee confirmation hearing in Dirksen Senate Office Building on April 28, 2021 in Washington, DC. Ketanji Brown Jackson, nominee to be U.S. Circuit Judge for the District of Columbia Circuit, and Candace Jackson-Akiwumi, nominee to be U.S. Circuit Judge for the Seventh Circuit, testified on the first panel. (Photo By Tom Williams-Pool/Getty Images)
Now playing
02:28
Sen. Whitehouse faces questions over private beach club membership
CNN
Now playing
02:23
'Ridiculous': Schumer slams Republicans for blocking Democrats' voting rights bill
Manatee County
Now playing
04:59
Two people are dead after Covid-19 outbreak hit a government building
CNN
Now playing
02:16
John King on US economy: Prices are going up big time
ABC
Now playing
01:45
'Bachelorette' opens up about being sexual assault survivor
Getty Images
Now playing
03:59
He inspired an Oscar-nominated film. Now, he could face life in prison
HBO
Now playing
02:15
Pakistan PM faces backlash for claim about sexual violence
A NYPD officer patrols Times Square as rain falls on March 28, 2020 in New York City. - US President Donald Trump said on March 28, 2020 that he's considering a short-term quarantine of New York state, New Jersey, and parts of Connecticut. (Photo by Kena Betancur / AFP) (Photo by KENA BETANCUR/AFP via Getty Images)
Kena Betancur/AFP/Getty Images
A NYPD officer patrols Times Square as rain falls on March 28, 2020 in New York City. - US President Donald Trump said on March 28, 2020 that he's considering a short-term quarantine of New York state, New Jersey, and parts of Connecticut. (Photo by Kena Betancur / AFP) (Photo by KENA BETANCUR/AFP via Getty Images)
Now playing
06:36
CNN rides along with NYPD as crime rates spike
US President Donald Trump listens during a meeting with Arkansas Governor Asa Hutchinson (R) and Kansas Governor Laura Kelly (L), on May 20, 2020, in the Cabinet Room of the White House in Washington, DC. (Photo by Brendan Smialowski / AFP) (Photo by BRENDAN SMIALOWSKI/AFP via Getty Images)
BRENDAN SMIALOWSKI/AFP/AFP via Getty Images
US President Donald Trump listens during a meeting with Arkansas Governor Asa Hutchinson (R) and Kansas Governor Laura Kelly (L), on May 20, 2020, in the Cabinet Room of the White House in Washington, DC. (Photo by Brendan Smialowski / AFP) (Photo by BRENDAN SMIALOWSKI/AFP via Getty Images)
Now playing
04:48
Trump wanted to send infected Americans to Guantanamo Bay, book says
Now playing
03:36
They stood up to Trump's lies and now are losing their jobs
CNN
Now playing
03:14
This family's lives will be changed by the child tax credit
WDJT
Now playing
01:35
Sen. Ron Johnson gets heckled at Juneteenth event
CNN
Now playing
02:39
NY candidate says he's joining forces with his opponent. Here's why
FLINT, MI - OCTOBER 31: Former U.S. President Barack Obama speaks during a drive-in campaign rally for Democratic presidential nominee Joe Biden at Northwestern High School on October 31, 2020 in Flint, Michigan. Biden is campaigning with former President Obama on Saturday in Michigan, a battleground state that President Donald Trump narrowly won in 2016. (Photo by Drew Angerer/Getty Images)
Drew Angerer/Getty Images North America/Getty Images
FLINT, MI - OCTOBER 31: Former U.S. President Barack Obama speaks during a drive-in campaign rally for Democratic presidential nominee Joe Biden at Northwestern High School on October 31, 2020 in Flint, Michigan. Biden is campaigning with former President Obama on Saturday in Michigan, a battleground state that President Donald Trump narrowly won in 2016. (Photo by Drew Angerer/Getty Images)
Now playing
00:54
Obama slams GOP's opposition to voting reform
Getty Images
Now playing
02:47
Enten: Straw poll of GOP activists rates DeSantis over Trump
Iran's new President-elect Ebrahim Raisi speaks during a press conference in Tehran, Iran, Monday, June 21, 2021. (AP Photo/Vahid Salemi)
Vahid Salemi/AP
Iran's new President-elect Ebrahim Raisi speaks during a press conference in Tehran, Iran, Monday, June 21, 2021. (AP Photo/Vahid Salemi)
Now playing
02:28
CNN asked Iran's President-Elect about nuclear deal. Hear his reply
CNN —  

After a classmate pulled out a gun in class, Kendrick Castillo couldn’t just stay still. He was surrounded by the friends he considered family and they were all in danger.

Kendrick died when he lunged at the shooter, giving other students at STEM School Highlands Ranch enough time to hide, his family and a classmate said.

“I know that because of what he did, others are alive, and I thank God for that. I love him. And he is a hero and he always will be,” his dad, John Castillo, said.

“He just loved people that much.”

courtesy John and Maria Castillo

The 18-year-old was watching “The Princess Bride” in his British literature class when the shooter pulled out a gun, demanding that nobody moved. After Kendrick lunged at the shooter, three other students also tackled the gunman and tried to subdue him while the rest of the class fled the room.

Kendrick was an only child, but his friends, including the members of the school’s robotics team, were like his siblings, his father said. They would host holiday gift exchanges at his home, shared his toys as a child and would pay for a friend’s movie tickets if someone didn’t have money.

“Be selfless, that’s what my son was, and it got him killed, but he saved others,” Castillo said.

’He was extraordinary’

Kendrick grew up speaking English and Spanish in suburban Denver and first attended Catholic school. He would also spend time fishing and camping with his late grandfather – who had been in the Marines.

“Kendrick was proud of him, proud that his grandfather was a hero,” Castillo said. “Part of me knows that Kendrick wanted to live that legacy.”

courtesy John and Maria Castillo

The teenager had kept the flag that once draped his grandfather’s casket close to him and would pray and kiss his tombstone at Fort Logan National Cemetery.

“He loved the patriotism,” Castillo said. “We are Hispanic by nature but we love America to the core.”

Castillo and his wife Maria were not surprised to learn that their son ran toward danger. They raised him to be responsible and “to be good.”

“This wasn’t your average kid,” Castillo said. “He was extraordinary.”

He refused to be a victim

Kendrick was about a foot away from the shooter and he immediately sprang into action, said Brendan Bialy, one of other students who jumped the gunman.

“Kendrick Castillo died a legend. He died a trooper,” Bialy said. “I know he will be with me for the rest of my life.”

After Bialy was able to move the gun away from the shooter, he checked on Kendrick and tried to get him to talk, but he wasn’t moving. He recalls helping a teacher who came into the room and tried to render medical aid.

Other students had tried to stop the bleeding by applying pressure to Kendrick’s chest, Brendan’s father told The New York Times.

“I refused to be a victim. Kendrick refused to be a victim. The other students refused to be a victim,” he said.

They did exactly what they were supposed to do, according to experts. Where people were once advised to flee or shelter in place, the new mantra for surviving an active shooter situation is “run, hide, fight.”

The moment they learned about their son’s sacrifice

Shortly after the shooting, Castillo and his wife Maria were frantically trying to reach Kendrick on his cell phone. They initially thought their son might have been injured, but grew more concerned when he would not pick up their texts and calls.

“I was a little bit guilty, because as I was trying to call him, I thought, well, maybe this is the wrong thing? Maybe I am putting his life in jeopardy by having the phone ring,” Castillo said. “My anxiety and the lump in my chest was growing.”

One of Kendrick’s friends sent Castillo a text saying Kendrick had rushed toward the shooter, but at the time, he didn’t know what to think about it. They watched as other students exited the yellow school buses and reunited with their parents, “and we didn’t have that,” Castillo said.

“I couldn’t believe this was happening to my son,” Castillo said.

The couple learned Kendrick was killed when they went to the hospital looking for him and officials told them his body was still inside the classroom. As they waited to see their son, students would come up to them calling their son a hero.

As Castillo and his wife mourn their son, he said they wish for Kendrick’s classmates to heal, go to college, get married and start their own families surrounded by love.

CNN’s Amanda Watts contributed to this report.