The French Press Agency reported that the main suspect in the Paris attack on Friday, a young man of Pakistani origin, confessed to investigators of carrying out the attack and spoke about his motives.

It quoted sources close to the investigation that the 18-year-old accused told the investigators that he did not bear what the Charlie Hebdo magazine committed to republishing the cartoons offensive to the Holy Prophet, may God bless him and grant him peace, and therefore carried out the stabbing operation.

Local media said that the accused, "Ali H."

He admitted the accusations against him, and indicated that he was born in Pakistan, and came to France 3 years ago when he was an unaccompanied minor.

Al-Jazeera correspondent in France, Mohamed Al-Bakkali, indicated that the accused was not - according to the investigations - aware that the magazine had moved its offices to a secret location after the armed attack on it in 2015 that left 12 people dead.

The attack came at that time after a state of anger and widespread across the Islamic world, as a result of Charlie Hebdo in 2006 publishing 12 cartoons insulting to the Holy Prophet.

The magazine reprinted the same cartoons in their number issued early this month to mark the start of the trial of those accused of attacking its headquarters.

The police arrested the perpetrator of the attack yesterday in Bastille Square shortly after the attack, which resulted in the fall of two wounded.

The young man attacked two people with a machete in front of the "Promier Linnae" news agency based in the building that housed Charlie Hebdo in 2015.

"A man came and attacked with a machete two employees who were smoking in front of the building, a man and a woman," Paul Moreira, one of the directors of "Promier Linnae", told the French agency.

He explained that they were hit in the upper part of the body, and one of them was hit in the head.

But Prime Minister Jean Castex - who came to the scene of the accident, Friday - confirmed that the lives of the injured were not in danger.

Interior Minister Gerald Darmanan had suggested that the attack was an "Islamic terrorist act," as he put it, and said in a statement to a TV station, "This is the approach taken by Islamic terrorists, and there is no doubt that it is a new bloody attack on our country."

Reuters quoted a judicial source as saying that the authorities renewed the detention of the accused this morning, and released in the early hours a suspect who was believed to have cooperated with the attacker, while they arrested another close to the attacker who may have shared his residence in a hotel room north of Paris.

In total, there are now 7 suspected persons in custody, including the attacker.