A man in his 60s is in police custody after a deadly shooting at a Presbyterian church in California, a day after 10 people were killed in a shooting in Buffalo, New York.