French police stormed a bank in Toulouse Wednesday, arresting a gunman with psychiatric problems who claimed to be an Al-Qaeda militant and freeing his two hostages after a seven-hour siege.
The 26-year-old, who had taken four bank employees hostage in the morning in the same area where serial killer Mohamed Merah lived and was shot dead by police in March, was wounded in the stomach in the assault, police sources said.
The two other hostages, both women, had been released earlier, and no police officers were injured in the operation, which took place at 4:45 pm local time (1445 GMT), police said.
Police shot the gunman as he was trying to exit the bank holding one of the hostages. He was wounded and returned inside, where he was apprehended.
Nearly seven hours earlier the man had entered the CIC bank, demanded money then fired a shot and taken the bank manager and other staff hostage, saying he wanted to negotiate with the elite RAID police unit that killed Merah.
Before the police went in local prosecutor Michel Valet said the gunman "wishes to make it known that this is not at all about money and that his motives are based on religious convictions."
"We don't yet know if this is a robbery that went wrong or if (the hostage taking) is a premeditated act," a police source had told AFP.
Family members identified the suspect as Setih Boumaza.
Police said the gunman had a criminal record and an informed source said he was schizophrenic and "may have stopped his treatment".
He was "put in a foster home when he was little and suffers from rage and fears the outside world," his sister told AFP over the telephone.
She said he was not very religious, adding: "We went to nightclubs and drank alcohol."
He entered the bank at around 10:00 am and insistently asked for money but staff did not take him seriously, police told AFP. He then produced a gun and took everyone hostage.
Rapid-intervention GIPN police units were dispatched from southern cities Bordeaux and Marseille to tackle the hostage-taking.
The RAID unit that shot Merah after he went on a killing spree is based in Paris, hundreds of kilometres to the north.
The CIC bank and Merah's former flat are within 500 metres of each other in Toulouse's Cote Pavee neighbourhood, east of the city centre.
Merah was killed at the end of a 32-hour siege of his flat after he shot dead seven people -- three soldiers, and three children and a teacher at a Jewish school in Toulouse -- in a wave of killings that shocked the country.
Toulouse, a city of around 500,000 people, lived in fear while police hunted the killer before he was identified as Merah. His neighbourhood has struggled to shake off the stigma of being associated with him.
"We're going through the same thing as three months ago," Maria Gonzalez, a mother with two children who could not go home because of the police cordon, said Wednesday before the incident was resolved.
"We used to be worry-free in the neighbourhood, but since the Mohamed Merah problem, we're worried. It's happening again, it's starting to scare me," she said.
Merah, 23, who claimed to be acting for Al-Qaeda, filmed himself carrying out his attacks and reportedly confessed to police before he was shot dead.
A petty criminal of Algerian origin, Merah reportedly spent time in Pakistan and Afghanistan but it is not known if he attended militant training camps.
Riding a powerful scooter, Merah shot dead three French troops in cold blood, reportedly because of French military interventions abroad.
He told negotiators the Jewish school killings were to avenge Palestinian children killed by Israel.
French intelligence was heavily criticised for failing to keep tabs on Merah despite the fact he travelled to known hotbeds of militant Islam.
France has the largest Muslim population in Europe.