Hastings man sentenced after attempted break-in incident leads to BB gun self-defense