“The attacker was immediately overpowered by security. Investigations are ongoing,” the presidency said in a Twitter post on Tuesday.
Goita was whisked away, according to an AFP news agency journalist, who also said he saw blood at the scene, though it was not clear who had been wounded.
An official at the presidency later told AFP that Goita was “safe and sound”. The president arrived at the military camp of Kati, outside Bamako, “where security has been reinforced”, the official said.
Two military sources also told Reuters news agency that Goita was unharmed following the attack.
The attack happened as an imam was directing worshippers outside the mosque for a ritual animal sacrifice.
Religious Affairs Minister Mamadou Kone told AFP that a man had “tried to kill the president with a knife” but was apprehended.
Latus Toure, the director of the Great Mosque, said an attacker had lunged for the president but wounded someone else.
Goita, 37, was sworn into office last month despite facing a diplomatic backlash over his second power grab in nine months.
In August 2020, Colonel Goita had led a military coup that removed embattled President Ibrahim Boubacar Keita after months of anti-government protests over perceived corruption and the failure to tackle a deteriorating security crisis that first emerged in 2012.
In late May, Goita, who was serving as Mali’s vice president in a transitional government tasked with leading the country back to civilian rule in February 2022, seized power again after accusing interim President Bah Ndaw and Prime Minister Moctar Ouane of failing to consult him about a cabinet reshuffle.