Witnesses said the police were gathered in a square ahead of their early morning parade when the bomber attacked in the capital Mogadishu.
The assault is the latest in a decade-old battle by the jihadists to overthrow Somalia's internationally-backed government.
"Eighteen members from the police were killed, and 15 others were wounded, after a suicide bomber blew himself inside the academy," acting police chief General Muktar Hussein Afrah told reporters.
"Some of the police were already in lines, and others were gathering, when the man in police uniform entered and blew himself up," said bystander Hussein Ali, describing the carnage.
Medics and ambulance teams rushed to take the wounded to hospital and collect the corpses.
Officers said the toll could have been far worse had the attacker detonated his bomb in the centre of the crowd.
"The bomber could have inflicted more casualties if he could have managed to reach the midpoint where most people were," police officer Ibrahim Mohamed said.
The Al-Qaeda-affiliated Shabaab claimed responsibility and put the toll at 27 dead.
"It was martyrdom operation, in which the mujahedeen targeted the police academy camp," a statement posted on a pro-Shabaab website read.
The Shabaab lost its foothold in Mogadishu in 2011 but has continued its fight, launching regular attacks on military, government and civilian targets in the capital and elsewhere.
In October, a huge truck bombing blamed on the Shabaab killed as many as 512 people, levelling buildings in the capital's busy Kilometre 5 neighbourhood.
On November 13, the Pentagon said US forces had killed more than 40 Shabaab and Islamic State fighters over four days.
An operation against a Shabaab camp on November 21 killed more than 100 fighters, according to the US Africa Command.
The increase in US raids comes as AMISOM, the AU's mission in Somalia, prepares to withdraw 1,000 troops from its 22,000-strong force, as part of plans to pull out all soldiers by December 2020.
Washington is worried the reduction will hamper efforts against jihadists.
Disclaimer: No Business Standard Journalist was involved in creation of this content
You’ve reached your limit of {{free_limit}} free articles this month.
Subscribe now for unlimited access.
Already subscribed? Log in
Subscribe to read the full story →
Smart Quarterly
₹900
3 Months
₹300/Month
Smart Essential
₹2,700
1 Year
₹225/Month
Super Saver
₹3,900
2 Years
₹162/Month
Renews automatically, cancel anytime
Here’s what’s included in our digital subscription plans
Exclusive premium stories online
Over 30 premium stories daily, handpicked by our editors


Complimentary Access to The New York Times
News, Games, Cooking, Audio, Wirecutter & The Athletic
Business Standard Epaper
Digital replica of our daily newspaper — with options to read, save, and share


Curated Newsletters
Insights on markets, finance, politics, tech, and more delivered to your inbox
Market Analysis & Investment Insights
In-depth market analysis & insights with access to The Smart Investor


Archives
Repository of articles and publications dating back to 1997
Ad-free Reading
Uninterrupted reading experience with no advertisements


Seamless Access Across All Devices
Access Business Standard across devices — mobile, tablet, or PC, via web or app
