A chilling video shows Tunisia gunman, Seifeddine Rezgui, shortly after his deadly rampage on Sousse beach. Twitter

A 26-year-old tour guide who risked his life to help as many people as he could from the shooting of Tunisian terrorist Seifeddine Rezgui and even pursued the gunman following his attack has been revealed.

The heroic man, who was identified by the Daily Mail Online as Mahdi, chased the 24-year-old gunman across the beach and threw an ashtray at Rezgui when the gunman ran out of bullets. Mahdi told reporters he was concerned he would lose his job at a private water sports hire company.

"When the terrorist started killing tourists, I was in the sea trying to evacuate tourists," Mahdi told the Daily Mail Online. "Afterwards, I ran after him and threw an ashtray when I saw that he was out of bullets, before he could reload and shoot, because there were many people nearby."

Mahdi told the fear of losing his job spurred him to confront the brutal killer.

In a video filmed by Khaled Nasraoui and posted by the Daily Mail, Mahdi said, "I saw the terrorist take a phone and he threw it on the beach...After that we stopped near the hotel of Bellevue and he told me: 'What are you doing here? This is not your job.'"

Mahdi continued, "I said: 'This is my job and if you do this, I will be jobless.' After he continued walking I took the ashtrays and I started throwing them at him and running behind him. I started calling to people near the hotel to catch him, because his gun has run out of bullets."

According to the hotel worker, a fellow worker threw stones and ceramic at Rezgui from one of the hotel balconies. "The terrorist stayed down for a few seconds, after that he reloaded his Kalashnikov and start shooting on the walls of the houses."

He told the Daily Mail that a police officer later refused to chase the terrorist because he was not properly uniformed. Mehdi said he and a coworker, who had grabbed the officer's gun, followed Rezgui in an attempt to stop him.

The attack on the Tunisian beach resort, which killed 38 and injured 39, was just one of three terrorist attacks on 26 June (Friday) in three different continents. A man was beheaded in Lyon, France early Friday morning, while a bomb exploded at Al-Sadiq mosque in Kuwait's capital. In Kuwait, at least 27 people were killed.

On 29 June, Tunisian Interior Minister Najem Gharsalli announced the country had made the first arrests in connection to the attacks in Sousse. "We have started by arresting a first group, the important part of the network that was behind this terrorist criminal," he said.

Rezgui was shot dead by police outside of the hotel after the attack, CNN reported.