SPARTANBURG, S.C. -- A Spartanburg police officer who joined the force in February has lost his job after his arrest for firing a gun into a home.

The police department said 25-year-old Alvin Anderson was fired following an investigation.

An incident report said deputies were called to a home Friday. A man who lives in the home told officers he was asleep when he heard the doorbell ring. The man said he started downstairs and heard someone shaking the front doorknob, and after hearing a man call his name, a gunshot came through the front door.

Investigators determined the shot was fired by Anderson. Master Deputy Kevin Bobo said Anderson was not on duty, not in uniform and in his personal car at the time of the incident.