Oct. 17 (UPI) -- President Donald Trump issued a warning to Hamas days into a ceasefire that it needs to stop killing people, end its attempt to regain control of Gaza and turn back to disarmament as it has agreed to do.

The militant group has searched for "wanted individuals" and battled rival militarized clans since Israel and Hamas agreed to institute a Trump administration-designed plan to end the two-year war in Gaza that has claimed tens of thousands of lives.

"If Hamas continues to kill people in Gaza, we will have no choice but to go in and kill them," Trump posted on Truth Social on Thursday, although he later clarified in remarks to reporters that he "didn't say who would go in but somebody will go in. It's not going to be us -- we don't have to."

Israel and Hamas last week reached a deal to end the war in Gaza, which included Israeli military forces pulling out of Gaza, Palestinians being permitted to return to what is left of their homes, humanitarian aid starting to flow in to the country, and for Hamas to begin disarming and ending its rule in the enclave.

As Israel has pulled back, however, instead of disarming, Hamas has put out calls to gather rivals and those who have helped Israel and, in some cases, executed these people in public squares in order to reassert its power, CNN reported.