Thousands of people have been made homeless in Nigeria after security forces used bullets, tear gas and bulldozers to push them out of a waterfront slum.