The man told Riverside County Sheriff’s Office deputies he would shoot them before throwing the hammer, leading deputies to fire shots at him