President Donald Trump has confirmed that the U.S. killed the leader of the Al-Qaeda in the Arabian Peninsula jihadist group who claimed responsibility for a mass shooting at an American naval base.

Trump said in a statement on Thursday that the U.S. at his direction conducted a counter-terrorism operation in Yemen that killed Qassim al-Rimi.

Al-Rimi is a founder of Al-Qaeda in the Arabian Peninsula.

The group has long been considered the global network's most dangerous branch for its attempts to carry out attacks on the U.S. mainland.

Donald Trump said in a statement on Thursday that the U.S. at his direction conducted a counter-terrorism operation in Yemen that killed Qassim al-Rimi - the leader of the Al-Qaeda in the Arabian Peninsula jihadist group

The jihadist group claimed responsibility for last year's deadly shooting at Naval Air Station Pensacola, where a Saudi aviation trainee killed three American sailors.

While Trump confirmed reports that al-Rimi had been killed, he did not say when the U.S. operation was conducted or offer any details about how it was carried out.

He did, however, say that the U.S. and its allies are safer as a result of al-Rimi's death.

'We will continue to protect the American people by tracking down and eliminating terrorists who seek to do us harm,' Trump said.

Trump's announcement confirmed earlier indications that al-Rimi had been killed.

In late January, a suspected U.S. drone strike destroyed a building housing al-Qaida militants in eastern Yemen.

Also, on February 1, Trump retweeted several other tweets and media reports that seemed to offer confirmation that the strike had killed al-Rimi.

Al-Rimi (pictured left in an undated photo) is a founder of Al-Qaeda in the Arabian Peninsula. A $10 million reward (right) for any information leading to his capture was offered by the State Department

While Trump confirmed reports that al-Rimi had been killed, he did not say when the U.S. operation was conducted or offer any details about how it was carried out

Al-Rimi had said in an 18-minute video that his group was responsible for the December 6 shooting at the base.

He called the shooter, Saudi Air Force officer Mohammed Alshamrani, a 'courageous knight' and a 'hero.'

Saudi Air Force officer, 2nd Lt. Mohammed Alshamrani is seen above. Alshamrani killed three U.S. sailors and injured eight other people

The shooter opened fire inside a classroom at the base, killing three people and wounding two sheriff´s deputies before one of the deputies killed him. Eight others were also hurt.

The SITE monitoring group said he had posted a short manifesto on Twitter prior to the attack that read: 'I'm against evil, and America as a whole has turned into a nation of evil.'

'I hate you because every day you (are) supporting, funding and committing crimes not only against Muslims but also humanity.'

The Twitter account that posted the manifesto also condemned US support for Israel and included a quote from Al-Qaeda's deceased leader Osama bin Laden.

The shooting focused public attention on the presence of foreign students in American military training programs and exposed shortcomings in the screening of cadets.

In January, the U.S. sent home 21 Saudi military students, saying the trainees had jihadist or anti-American sentiments on social media pages or had 'contact with child pornography,' including in internet chat rooms.

Around 850 Saudis are among the 5,000 foreign military personnel being trained in the United States.

The victims: On December 6 gunman Mohammed Saeed Alshamrani, an aviation student from Saudi Arabia, opened fire at the base and killed three Americans (L to R): Airman Apprentice Cameron Scott Walters, 21; Mohammed Haitham, 19; Joshua Kaleb Watson, 23; and injured eight others