Government officials urged citizens to remain indoors as authorities worked to apprehend suspects in the attack.