JERUSALEM (AP) - A Palestinian gunman opened fire at a bus near Jerusalem's Old City early Sunday, wounding eight Israelis in an attack that came a week after violence flared up between Israel and militants in Gaza, police and medics said.

Two of the victims were in serious condition, including a pregnant woman with abdominal injuries and a man with gunshot wounds to the head and neck, according to Israeli hospitals treating them.

The U.S. Ambassador to Israel, Tom Nides, tweeted that there were American citizens among the wounded. An embassy spokesperson disclosed no other information or details.

The shooting happened as the bus waited in a parking lot near David's Tomb on Mount Zion, just outside the Old City walls. Israeli media identified the suspected attacker as a 26-year-old Palestinian from east Jerusalem.

Israeli police said forces were dispatched to the scene to investigate. Israeli security forces also pushed into the nearby Palestinian neighborhood of Silwan pursuing the suspected attacker.

Later on Sunday, police said the suspected attacker turned himself in. Speaking at a meeting of his Cabinet on Sunday, Israeli Prime Mnister Yair Lapid said the suspected attacker was a resident of Jerusalem who was operating alone during the shooting and who had previously been arrested by Israel.

In New York, friends and family of a father and son were relieved that their loved ones were recovering, even as worry surrounded the fate of a pregnant Brooklyn woman who was shot in the abdomen.

“It's very devastating and painful to see what's happening,” said Rabbi Moishe Indig, a leader of the Satmar Jewish community in Brooklyn, who counted the father and son as members.

The focus is on prayer and healing, said Isaac Abraham, a relative of the two.

The attack in Jerusalem followed a tense week between Israel and Palestinians in Gaza and the West Bank.

Last weekend, Israeli aircraft unleashed an offensive in the Gaza Strip targeting the militant group Islamic Jihad and setting off three days of fierce cross-border fighting. Islamic Jihad fired hundreds of rockets during the flare-up to avenge the airstrikes, which killed two of its commanders and other militants. Israel said the attack was meant to thwart threats from the group to respond to the arrest of one of its officials in the occupied West Bank.

Forty-nine Palestinians, including 17 children and 14 militants, were killed, and several hundred were injured in the fighting, which ended with an Egyptian-brokered cease-fire. No Israeli was killed or seriously injured.

The Islamic militant group Hamas, which controls Gaza, stayed on the sidelines.

A day after the cease-fire halted the worst round of Gaza fighting in more than a year, Israeli troops killed three Palestinian militants and wounded dozens in a shootout that erupted during an arrest raid in the West Bank city of Nablus.

AP journalist Bobby Caina Calvan in New York City contributed to this report.