Hamas has vowed to bring what it calls the dangerous situation on the streets of Gaza under control as the group faces its first internal crisis after only three days in government.