The FBI says an immigration agent shot and injured another agent and was then killed by a third colleague in a federal building in Long Beach.