A boater was attacked and injured, possibly by a shark off the coast of Miami on Thursday afternoon, officials said.