602.2. As the combat phase starts, the attacking player doesn’t choose an opponent to become the defending player. Instead, all the attacking player’s opponents are defending players during the combat phase.
Since the team mate question is only relevant during multiplayer, then this answer suggests that no, you can't attack a team mate. Only one's opponents become defending players.