An Afghan lawmaker contesting this week's parliamentary elections was among four people killed on Wednesday by a bomb planted under his office chair, officials said, in an attack claimed by Taliban militants.