The US president says IS targets were attacked in north-western Nigeria, accusing the group of killing Christians.