Attempted homicide thwarted