Tactic responses in photosynthetic bacteria