Violence erupted in Guatemala City after security forces retook two prisons from gang control, freeing hostages.