A man called police saying he admitted to shooting someone who was allegedly trying to attack him and another man with a machete.