TOULOUSE, France (AP) -- French police were preparing to storm an apartment building in Toulouse on Wednesday to arrest a holed-up gunman who is suspected in seven killings and claiming allegiance to al-Qaida, a top police official said.
Three officers were wounded in a predawn raid while trying to arrest the 24-year-old Frenchman of Algerian descent who authorities said had spent time in Afghanistan and Pakistan. Hundreds of riot police have surrounded the building in the southwestern city.
Cedric Delage, regional secretary for a police union, said the suspect has promised to turn himself into police shortly. Delage said if that doesn't happen, police will force their way in.
The gunman is suspected of killing three Jewish children, a rabbi and three French paratroopers in recent days.
The suspect has told police he belonged to al-Qaida and wanted to take revenge for Palestinian children killed in the Middle East, Interior Minister Claude Gueant said, adding the man was also angry about French military intervention abroad.
An Interior Ministry official identified the suspect as Mohamed or Mohammad Merah, who has been under surveillance for years for having "fundamentalist" views. The official spoke on condition of anonymity because the investigation is ongoing.
After hours of trying to persuade him to surrender, police evacuated the five-story building, escorting residents out using the roof and fire truck ladders.
The raid was part of France's biggest manhunt since a wave of terrorist attacks in the 1990s by Algerian extremists. The chase began after France's worst-ever school shooting Monday and two previous attacks on paratroopers, killings that have horrified the country and frozen the campaigning for the French presidential election starting next month.
French President Nicolas Sarkozy has said a "monster" was on the loose in France and vowed to track him down. Sarkozy has played up nationalist themes in his bid for a second term.
French authorities said the suspect threw a Colt .45 handgun used in each of the three attacks out a window in exchange for a device to talk to authorities, but has more weapons like an AK-47 assault rifle. Gueant said other weapons had been found in the suspect's car.
The suspect "said he wants to avenge the deaths of Palestinians," Gueant told reporters, adding that he is "less explicit" about why he killed French paratroopers. The paratroopers were of Muslim and French Caribbean origin, but the interior minister said the suspect told them the ethnic origin has nothing to do with his actions.
"He's after the army," Gueant said.
There was some confusion over the suspect's background, because a person of the same name was arrested in southern Afghanistan five years ago and escaped from his prison cell in Kandahar province in a 2008 mass jailbreak, according to Kandahar provincial spokesman Ahmad Jawed Faisal. However, Faisal says their records also show that Merah was an Afghan citizen from Kandahar province.
In neighboring Germany, which regularly tracks extremists who head to Afghanistan or Pakistan for paramilitary training, a senior intelligence official told the AP that he had never seen the name "Mohammad Merah" come up. He spoke on condition of anonymity because he was not authorize to discuss the issue.
Police swept in soon after 3 a.m. (0200 GMT; 10 p.m. EDT Tuesday) on the residential neighborhood in Toulouse where the suspect was holed up. At one point, volleys of gunfire were exchanged.
The suspect promised several times to surrender in the afternoon, then stopped talking to negotiators, Gueant said. In the early afternoon, he resumed talking, a police official said.
"Terrorism will not be able to fracture our national community," Sarkozy declared Wednesday on national television before heading to the funeral services for two paratroopers killed and another injured in nearby Montauban. He later traveled to Toulouse.
The series of attacks -- every four days since March 11 -- began with the killing of another paratrooper in Toulouse.
"The main concern is to arrest him, and to arrest him in conditions by which we can present him to judicial officials," Gueant said, explaining authorities want to "take him alive ... It is imperative for us."
A judicial official said the suspect's mother, brother and a companion of the brother were detained for questioning. The official spoke on condition of anonymity because he wasn't authorized to speak publicly.
Gueant said the suspect's brother "is also engaged in the Salafi ideology," a reference to a fundamentalist interpretation of Islam.
The building where the raid is taking place dates from the 1960s. The suspect's apartment is on the ground floor, said Eric Lambert, whose son lives in the building. Lambert said the suspect helped his son move into the building a few months ago.
Delage said a key to tracking the suspect was the powerful Yamaha motorcycle that he has used in all three attacks -- a dark gray one that had been stolen March 6. The frame was painted white, the color witnesses saw in the school attack.
According to Delage, one of the suspect's brothers went to a motorcycle sales outfit to ask how to modify the GPS tracker, raising suspicions. The vendor then contacted police, Delage said.
The shooter has proved to be a meticulous operator. At the site of the second paratrooper killing, police found the clip for the gun used in all three attacks -- but no fingerprints or DNA on it.
The first French paratrooper killed was shot March 11 after posting an announcement online to sell his motorcycle and investigators believe the gunman responded and lured the paratrooper into an isolated place to kill him.
The schoolchildren killed, all of French-Israeli nationality, were buried in Israel on Wednesday as relatives sobbed inconsolably. The bodies of Rabbi Jonathan Sandler, his sons Arieh, 5, and Gabriel, 3, and 8-year-old Myriam Monsenego had been flown there in the day.
At the funeral ceremony in Jerusalem, Myriam's eldest brother, Avishai, in his 20s, wailed and called to God to give his parents the strength "to endure the worst trial that can be endured."
In the name of the four remaining Monsenego children, he urged his father and mother to "keep going, keep going, keep going."
Meanwhile, Palestinian Prime Minister Salam Fayyad denounced the deadly shooting attack and condemned the link to Palestinian children.
"It's time for criminals to stop using the Palestinian cause to justify their terrorist actions," Fayyad said in a statement. "The children of Palestine want nothing but dignified lives for themselves and for all the children."
Elaine Ganley, Thomas Adamson, Jamey Keaten, Ingrid Rousseau, Cecile Brisson and Sylvie Corbet in Paris contributed to this report.