By CBSLA Staff

RIVERSIDE (CBSLA) – A man was shot and killed by police after aiming a gun at officers, the Riverside Police Department said.

It happened around 8:20 a.m. Saturday in the 3700 block of Magnolia Avenue in Riverside.

READ MORE: Associate Pastor Shot To Death At Compton Intersection

Officers were patrolling the area, which has a large homeless population. As officers approached one man, he started walking away from them, according to Officer Ryan Railsback with the Riverside Police Department.

“He turned towards officers, produced a handgun, and pointed it at them,”  added Railsback. “Two of the officers fired their handguns.”

READ MORE: Vigil Held To Honor Life Of Cinematographer Halyna Hutchins Killed In Movie Set Shooting

The suspect was struck several times and taken to a local hospital where he died, officers said.

It is unclear what type of gun the suspect had and whether or not it was loaded.

The Riverside County Sheriff’s Department was on the scene investigating the incident. They are being assisted by the Riverside County District Attorney’s Office.

MORE NEWS: 'Supercharge' Storm Expected To Bring Heavy Rainfall To Southland

No officers were injured.