President John Magufuli has reaffirmed his commitment to maintain peace and security.