Standoff ends with 7 people detained after two people shot