A man was shot and killed by police in Oakland Sunday night, according to the city's police department.

The shooting occurred along the 900 block of 40th Street, just a few blocks west of the MacArthur BART station, police said.

Oakland Fire Department crews were first dispatched to the area around 6:17 p.m. after authorities received a report that a man was down in the street, according to police. Arriving fire department personnel noticed that the man was armed with a gun.

When officers arrived to the scene, they noticed that the man had a hand gun, according to police.

Officers issued verbal commands, but "the man did not comply with the officers commands and officers discharged their service weapon," according to a statement from the police department.

The man was hit and later pronounced dead, according to police.

A gun was recovered from the scene, police said.

Oakland police are conducting an investigation. The Alameda County District Attorney's Office is also conducting its own investigation.