Media reports say an American student kidnapped by Palestinian gunman was released on Wednesday.

The student, Michael Phillips, had been abducted in the West Bank town of Nablus.

Media Reports: American Student Abducted by Palestinians Released

His release came shortly after a previously unknown Palestinian militant group called Ansar al-Suna claimed it had kidnapped him. News agencies say the group had identified the student as Michael Phillips and provided copies of his U.S. passport and student identification card.

Media Reports: American Student Abducted by Palestinians Released

Separately, Israeli troops killed two Palestinians that Israel says were preparing terror attacks. The Israeli military says it killed a Palestinian militant in Nablus who was planting explosives.

Media Reports: American Student Abducted by Palestinians Released

Israel's military also says it shot and killed a man wearing a bomb belt as he tried to slip into Israel from the Gaza Strip.

There have been many abductions in the West Bank and Gaza Strip, but most captives have been released within hours.

Two journalists for the U.S. television network Fox News were kidnapped in August by Palestinian militants in Gaza. They were released after two weeks in captivity.