It was not immediately clear who the gunman was or what was his motive .