The San Bernardino, California shooting that left 14 dead and 21 injured is being investigated as terrorism, the Federal Bureau of Investigation has confirmed.