A preliminary report will be issued later this week.
Although Mr Mohamoud said there were only two injuries, there were unverified reports that a person fell out of the hole.
Daallo Airlines said in a brief statement posted on its Facebook page that the Airbus A321 plane was operated by Hermes Airlines. It said the plane “experienced an incident shortly after take-off”.
“The Aircraft landed safely and all of our passengers were evacuated safely. A thorough investigation is being conducted by Somalia Civil Aviation Authority,” the Daallo statement said.
Hermes Airlines is based in Athens, Greece. Its main business is providing planes on a “wet lease” basis, meaning it leases insured planes staffed and serviced by its crew to other carriers. Its fleet includes four A321s and one Boeing 737, according to its website.
Mohamed Hassan, a police officer in Balad, an agricultural town about 18 miles north of Mogadishu, said residents had found the dead body of an elderly man who might have fallen from a plane.
“I think it was a bomb,” said the Serbian pilot, Vladimir Vodopivec, who was quoted by Belgrade daily Blic. “Luckily, the flight controls were not damaged so I could return and land at the airport. Something like this has never happened in my flight career. We lost pressure in the cabin. Thank god it ended well,” the 64-year-old pilot said.
Somalia faces an insurgency perpetrated by the Somali Islamic extremist group al-Shabab, which is responsible for many deadly attacks across the nation.
From the comments