Two security monitors at Marjory Stoneman Douglas High School were fired on Tuesday from their jobs after one of them hid in a closet and the other failed to confront gunman Nikolas Cruz during his shooting rampage which killed 17 people on February 14.

Andrew Medina and David Taylor became the first employees of the Broward County School District to lose their jobs as a result of their response to the shootings.

News of their dismissal was reported by the South Florida Sun Sentinel.

Medina and Taylor were full-time security monitors who also worked as assistant coaches for the Marjory Stoneman Douglas High School baseball team.

In the moments before the mass shooting began, Medina, who was unarmed, was the first to see the gunman, Nikolas Cruz, walk onto campus.

Medina told investigators that shortly after the shooting began, he radioed Taylor to warn him that a suspicious person was heading his way.

Stoneman Douglas coach Andrew Medina pictured during an interview with authorities. Medina, who also worked as a security monitor, was unarmed on the day of the massacre

Authorities said Medina failed to confront Cruz. Nor did he lock down the school.

Taylor, meanwhile, hid in a closet during the massacre.

After Medina’s videotaped testimony to authorities was released, the two men were reassigned.

Russell Williams, an attorney who represents both Medina and Taylor, slammed the decision by the school board.

‘What kind of due process is that? We could have at least been there to argue points,’ Williams said.

On the day of the shooting, Medina told investigators he knew the teenager posed a threat and that he tried to follow him but couldn't catch up.

Medina, 39, was in a golf cart at Marjory Stoneman Douglas High School when he spotted Cruz getting out an Uber with a big black bag and backpack just moments before the deadly shooting unfolded.

In an interview with Broward County detectives on the day of the shooting, Medina admitted that the school knew the 19-year-old was a risk.

In the moments before the mass shooting began, Medina, who was unarmed, was the first to see the gunman, Nikolas Cruz, walk onto campus

'Nikolas Cruz. I knew the kid,' he told detectives.

'We had a meeting about him last year and we said if there's gonna be anybody whose gonna come to this school and shoot this school up, it's going to be that kid.

'He had problems with everybody, like all of the security people. He was one of those kids who...was rebellious, you know... he had 666 on his book bag. He had the swastika. He had all that crazy stuff.

'All the signs were there, so they got rid of him.'

Medina, a baseball coach and unarmed campus monitor, had been riding around the campus unlocking gates about 20 minutes before dismissal when he saw Cruz arrive and head towards one of the buildings.

He said when he realized Cruz was 'on a mission', he radioed Taylor, the campus monitor of the building where the teen was headed.

Medina said he also texted other security guards to alert them as he tried to tail Cruz in his golf cart.

'He's beelining. He's got his head down. He's on a mission,' Medina said.

'He sees my golf cart and he runs. He starts running to the building, inside the building.'

Medina said he began hearing shots from inside less than a minute later.

'I'm getting out,' Medina said. 'And then I hear, pop, pop, pop, pop, pop, pop.'

People are brought out of the Marjory Stoneman Douglas High School after the shooting on February 14

Nikolas Cruz, the gunman, killed 17 people at the school. Two of the students who survived are seen above on February 14

Medina said he didn't immediately report an emergency code because he hadn't seen a gun and didn't want to needlessly bring a SWAT response.

Instead, Medina picked up the only armed school resource officer, Scot Peterson, in his golf cart and drove back over to the building.

'I heard 15 bangs,' Medina said.

'And it was loud. Like, you could kind of feel the percussion coming out of that building, the echo coming out of the door of the building... It was kind of surreal.'

Medina recalled Peterson saying there was a shooter on campus but said the armed resource officer told him to leave and head back to the front of the school.

Peterson has been widely criticized for his lack of action.

He resigned and retired from the Broward Sheriff's Office eight days after the shooting when video surveillance footage showed him standing outside the building during the rampage.

Aside from his actions during the shooting, Medina also made news for allegedly sexually harassing two students last year.

He was suspended three days by the school district after two female high school students, one of whom was killed on February 14, complained about him.

The suspension was handed down despite recommendations that he be fired.