Authorities said it did not appear the gunman was targeting anyone in particular, and that the motive behind the shootings that killed three remains unclear.