And I wrote hamas. Because I meant hamas.
Yes, there should be peace between palestine and israel. Unfortunately: hamas is a political organization, a terrorist organization and exists solely to pursue an ideological goal through murder. They are in the way. There needs to be a new government in palestine if there is to be any long term, lasting peace. You might be able to broker something short term with hamas, but it'll only last until they think they can get another chance to attack.
Do I know how to do to get them out of the way, preferably without civilian casualties? No, even if they weren't using schools and hospitals and the people there in as meat shields. The best way would be getting palestinians to rise up and rid themselves of their oppressors: but it's a catch 22 because that would require their government (hamas.) to actively negotiate in good faith to see towards improving the standard of living for everyone: and they won't because then they won't have pissed off, uneducated, unemployed people with no sight of a future to fight and die for them.
Given what was happening in israel until the shooting started: there probably needs to be a new government in israel too, but they're closer it than palestine is. At least there's something of a democracy there.
The IRA in Ireland were/are (possibly American-funded) terrorists and a peace deal was brokered eventually.
Northern Ireland peace process - Wikipedia
en.m.wikipedia.org