Shaer was first arrested at his home in
Ramallah by
Israel Defense Forces personnel on 19 August 2006, and was the highest-ranked of about sixty Hamas officials detained by Israel during the
2006 Gaza–Israel conflict. He was released without charges on 27 September after a military court ruled that there was insufficient evidence against him to justify his arrest. Shaer was detained again on 23 May 2007 at his home in Nablus by the IDF during overnight raids in the
West Bank relating to the
Qassam rocket fire towards Israel from
Hamas in the
Gaza Strip. He was one of 33 Hamas officials that included a number of mayors and lawmakers to be arrested in a series of raids that day. He was released four months later. On 19 March 2009, al-Shaer and nine other high-ranking Hamas members in the West Bank were detained by Israeli authorities after prisoner exchange negotiations collapsed between Hamas and Israel. He was arrested in Nablus. According to news correspondents, the detentions appeared to be an Israeli attempt to pressure Hamas after the failure of the negotiations, although an Israeli military official said there was "no indication" the arrests were connected to the issue. Meanwhile, Hamas official Ahmed Bahar denounced the actions as "immoral blackmail by the Zionist occupation." ==Assassination attempt==