A man who pleaded guilty to attempted murder and assault charges for setting fire to his ex-girlfriend’s home day care facility in Chula Vista nearly five years ago and shooting at her while seven children were inside was sentenced to 21 years in state prison Tuesday.