President Donald Trump has warned Hamas that they will be “killed” if they do not put an end to violence in Gaza, just days after he celebrated a ceasefire and prisoner-hostage exchange with Israel.