An 18-year-old suspect opened fire at cars and homes before he was shot dead by police in Farmington, New Mexico, authorities said.