The accused gunman called both the police and the FBI before the start of a shooting spree that left seven people dead and at least 25 people injured.